public function hasMethod($controllerObj, $method)
    {
        if(method_exists($controllerObj, $method)) {
            return true;
        }
        else {
            throw new Exception($method." method is missing in ".get_class($controllerObj)." Controller.");
            exit;
        }
    }
public function hasMethod($controllerObj, $method)
    {
        if(method_exists($controllerObj, $method)) {
            return true;
        }
        else {
            throw new Exception($method." method is missing in ".get_class($controllerObj)." Controller.");
            exit;
        }
    }
public function hasMethod ( $ controllerObj , $ method ) { if ( method_exists ( $ controllerObj , $ method ) ) { return true ; } else { throw new Exception ( $ method . " method is missing in " . get_class ( $ controllerObj ) . " Controller." ) ; exit ; } }
Check if Controller has method or not.

@param   {App}\Controller\{Name}Controller  $controllerObj
@param   string                             $method
@return  bool
@throws  Exception
Check if Controller has method or not .