This line does not work in any case. For the Pizza ontology, the first entity of kind 'Class' can be a root (and does not have roots by itself). No hierarchy would be assumed despite one existing.