fixed emptiness conditions
Merge pull request #9 from Hilaryous/emptiness

fixed emptiness conditions