check for undefined, which is true when the option value is empty