Since the Tree View can load the "children" attribute asynchronously, sometimes the developer may want to know the length of a node's children. eg.:
But if this piece of code is called before the 50ms delay that takes to set the children attribute when lazyLoad=true, then .get('children').length would incorrectly return 0. Only because the children attribute was not yet set.