use '==' for comparison against empty string instead of 'is'