bugfix: test for empty string instead of nil