code: protected static function ssl()
  	{
  		$request = System::getContainer()->get('request_stack')->getCurrentRequest();
  
  		if ($request === null)
  		{
  			return false;
  		}
  
  		return $request->isSecure();
  	}
docs: Return true if the current page was requested via an SSL connection
  
  @return boolean True if SSL is enabled