/**
  * Get a valid GitHub API object
  *
  * @return \Github\Client
  */
 private function getGitHubAPI()
 {
     if ($this->client) {
         return $this->client;
     }
     /*
      * The API comes with a cache extension, but it fails in Guzzle.
      * @see https://github.com/KnpLabs/php-github-api/issues/116
      *
      * We are using the preferable Guzzle cache plugin that seems more stable
      */
     if ($this->config['cache']) {
         $this->client = new GithubClient();
         $this->addCache();
     } else {
         $this->client = new GithubClient();
     }
     if (isset($this->config['github']['token'])) {
         $this->client->authenticate($this->config['github']['token'], GithubClient::AUTH_HTTP_TOKEN);
     }
     return $this->client;
 }