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;
        }
    }