pub fn is_empty(&self) -> bool {
        let Some(version) = self.tree.latest_version() else {
            return true;
        };
        self.tree
            .root(version)
            .is_none_or(|root| matches!(root, Root::Empty))
    }
Checks whether this tree is empty.
core/lib/merkle_tree/src/domain.rs