changed isOnlyNode Logic from isLeaf to childrenLinkList.isEmpty