guard against empty command