/** * Get location record. * * @return array|false Location data or FALSE on failure */ public function getLocation() { try { $location = $this->geoLiteCity->lookupLocation($this->ip); if ($location instanceof Net_GeoIP_Location) { return $location->getData(); } } catch (Exception $exception) { return false; } return false; }