original_string: private function getGeoIpInstance($key)
      {
          if (empty($this->readerCache[$key])) {
              $pathToDb = self::getPathToGeoIpDatabase($this->customDbNames[$key]);
              if ($pathToDb !== false) {
                  try {
                      $this->readerCache[$key] = new Reader($pathToDb);
                  } catch (InvalidDatabaseException $e) {
                      // ignore invalid database exception
                  }
              }
          }
  
          return empty($this->readerCache[$key]) ? false : $this->readerCache[$key];
      }
code: private function getGeoIpInstance($key)
      {
          if (empty($this->readerCache[$key])) {
              $pathToDb = self::getPathToGeoIpDatabase($this->customDbNames[$key]);
              if ($pathToDb !== false) {
                  try {
                      $this->readerCache[$key] = new Reader($pathToDb);
                  } catch (InvalidDatabaseException $e) {
                      // ignore invalid database exception
                  }
              }
          }
  
          return empty($this->readerCache[$key]) ? false : $this->readerCache[$key];
      }
code_tokens: private function getGeoIpInstance ( $ key ) { if ( empty ( $ this -> readerCache [ $ key ] ) ) { $ pathToDb = self :: getPathToGeoIpDatabase ( $ this -> customDbNames [ $ key ] ) ; if ( $ pathToDb !== false ) { try { $ this -> readerCache [ $ key ] = new Reader ( $ pathToDb ) ; } catch ( InvalidDatabaseException $ e ) { // ignore invalid database exception } } } return empty ( $ this -> readerCache [ $ key ] ) ? false : $ this -> readerCache [ $ key ] ; }
docstring: Returns a GeoIP2 reader instance. Creates it if necessary.
  
  @param string $key 'loc' or 'isp'. Determines the type of GeoIP database
  to load.
  @return Reader|false
docstring_tokens: Returns a GeoIP2 reader instance . Creates it if necessary .