[BUG #7501]  Added a util method to detect whether a node has children or not.