Reworked all isEmpty methods
Add tests
Merge pull request #297 from wmde/isEmpty

Reworked all isEmpty methods