fix bad empty string check