Shorter code for object hasElems
Merge pull request #1 from Spidy88/master

Shorter code for object hasElems