function newThreadGet() { $subcategory = ModelFacade::getSubCategory($_GET["subcategory"]); if ($subcategory == null) { $message = "Sorry Subcategory with that id does not exist"; include_once '/Views/ErrorPage.html'; } else { include_once '/Views/NewThread.html'; } }