CommandParser: Implement check() to test for valid command