Check the array keys for the action