satisfy rubocop by shortening line, using exist instead of exists, and collapsing long if check
satisfy rubocop by shortening line, using exist instead of exists, and collapsing long if check

cpbuckingham/githubcharts,git2samus/githubchart,akerl/githubchart