Updated to check if the action has existed in the controller