Fixes misuse of empty().
Merge pull request #15 from saebyn/master

Fixes misuse of empty().