Use simpler test for empty string and check for NULL.