Walks arr depth-first and returns every node together with each node's descendants. getChildren returns null (or an empty list) for leaf nodes.
null