Resources\Uri::isHttps PHP Method

isHttps() public method

Does this site use https?
public isHttps ( ) : boolean
return boolean
    public function isHttps()
    {
        if (isset($_SERVER['HTTPS'])) {
            if ('on' == strtolower($_SERVER['HTTPS'])) {
                return true;
            }
            if ('1' == $_SERVER['HTTPS']) {
                return true;
            }
        } elseif (isset($_SERVER['SERVER_PORT']) && '443' == $_SERVER['SERVER_PORT']) {
            return true;
        }
        return false;
    }