nit: since this ```if``` and preceding ```forEach``` only for the case when ```node.length > 0``` probably we can return before ```forEach``` if ```node.length === 0```, so we won't need ```&& nodes.length``` in this ```if```