category.isGrandParent ?

Work in progress: