def check_action(action): """Check the correct action for the cipher, otherwise ask it again """ return action in Cipher.action_calls()