Added IsTypeInHierarchy method