Better check for when node has children