I don't know if here would be the proper place to define such a check. It's just a command relying on the if's. (Otherwise any command added would require such a check, which seems a bit excessive)