public function check($thing, $what) { if ($thing == "checkmethod") { $present = CheckMethodLoader::getCheckMethodLoader()->isCheckMethodLoaded($what); } else { if ($thing == "application") { $present = AppLoader::getAppLoader()->isApplicationLoaded($what); } else { return new Response(200, "First argument need to be checkmethod, or application"); } } return new JsonResponse(array("present" => $present)); }