Can you only call this if `isNodeExpanded() != expand`?