negated the empty() check on line 117
Merge pull request #34 from davidmosterd/fix1

! empty() should be empty(), props davidmosterd