public bool isCommandValid(char command) { return(CommandMap.getCommands().Exists(each => each == command)); }