guard against empty commands