clean up hasElements boolean

But if you like the more verbose style then keep it.
Merge pull request #6 from paulirish/patch-1

clean up hasElements boolean