Small updates to the private getFirstSetEachElement() function
Small updates to the private getFirstSetEachElement() function

- Better variable name
- Small compression by using the private function for checking if a node is an element

woollybogger/Firebolt,woollybogger/Firebolt