Add check before creating command.