protected function isSecure($preset = true)
    {
        if (null !== $preset) {
            return (bool) $preset;
        }

        if (null === $this->router) {
            return false;
        }

        return 'https' == strtolower($this->router->getContext()->getScheme());
    }
protected function isSecure($preset = true)
    {
        if (null !== $preset) {
            return (bool) $preset;
        }

        if (null === $this->router) {
            return false;
        }

        return 'https' == strtolower($this->router->getContext()->getScheme());
    }
protected function isSecure ( $ preset = true ) { if ( null !== $ preset ) { return ( bool ) $ preset ; } if ( null === $ this -> router ) { return false ; } return 'https' == strtolower ( $ this -> router -> getContext ( ) -> getScheme ( ) ) ; }
Returns true if avatar should be fetched over secure connection.

@param mixed $preset

@return bool
Returns true if avatar should be fetched over secure connection .