Check for the existence of the action index before testing the value