Fixed issue #169: removed usage of falsy value in if and prefer equality testing with empty string.
Merge pull request #173 from pgelinas/fix-issue-169

Removed usage of falsy value in if and prefer equality testing with empty string.