Could this be written as `isinstance(dataset, (Set, ExtrudedSet))`?