Refactored isIndexHypervisor and isIndexDomain