/** * Throw a 404 error page if the given page is not found. * * @param $page */ private function throw404IfNotFound($page) { if (is_null($page)) { $this->app->abort('404'); } }