Separate the check of empty string for value and text (to avoid risk of finding the expected empty string as widget value just because it defaults to the text which itself is empty)