public static function run() { if (CookieController::cookieExists("session")) { if (($user = CookieController::readSessionCookie()) === false) { header("Location: home"); } else { $maps = MapDatabase::getAllUserMaps($user->getID()); MyTripsView::show($maps); } } else { header("Location: home"); } }