check if method is part of controller class and not using __call()