protected function getHostFromRequest() { $host = null; if (isset($_GET['host']) && $_GET['host'] !== '' && in_array($_GET['host'], $this->getHosts()) === true) { // Get host from request $host = $_GET['host']; } return $host; }