Issue #133: got rid of unused method Command.valid()