message = _('This place does not seem to exist.'); $this->connector = $connector; parent::__construct(); } public function isValid($geonameid) { try { $this->connector->geoname($geonameid); } catch (TransportException $e) { return true; } catch (NotFoundException $e) { return false; } return true; } }