protected function isValidDomain($domain)
    {
        if (filter_var($domain, FILTER_VALIDATE_URL) === false) {
            $this->eye->logger()->debug('SSL URL not valid', $domain);
            return false;
        }

        return true;
    }
protected function isValidDomain($domain)
    {
        if (filter_var($domain, FILTER_VALIDATE_URL) === false) {
            $this->eye->logger()->debug('SSL URL not valid', $domain);
            return false;
        }

        return true;
    }
protected function isValidDomain ( $ domain ) { if ( filter_var ( $ domain , FILTER_VALIDATE_URL ) === false ) { $ this -> eye -> logger ( ) -> debug ( 'SSL URL not valid' , $ domain ) ; return false ; } return true ; }
Check if the URL is valid.

@param  string  $domain
@return bool
Check if the URL is valid .