protected function isHTTPSConnection() : bool { if (!empty($_SERVER['HTTPS'])) { return $_SERVER['HTTPS'] !== 'off'; } return false; }