Add function to check that an action exists.
Add function to check that an action exists.