isAncestor

fun isAncestor(ancestor: String, descendant: String): Boolean

True if ancestor is a proper ancestor of descendant (i.e. ancestor appears on the path from descendant to the root, excluding descendant itself).