public function isHttps() { return isset($this->_SERVER["HTTPS"]) && strtolower($this->_SERVER["HTTPS"]) == "on"; }