public function getCountryCode3ByIP($ipAddress = '')
    {
        // Get remote ip address if empty
        $ipAddress = (empty($ipAddress) ? $this->request->server->get('REMOTE_ADDR') : $ipAddress);

        // Check implementation
        if (!function_exists('geoip_country_code3_by_name')) {
            throw new Exception('geoip_country_code3_by_name() function is not available.');
        }

        // Return country code
        return geoip_country_code3_by_name($ipAddress);
    }