fixed isEmpty method that was missing a NOT
Merge origin/master