private bool IndexStillExists(SchemaRead schemaRead, SchemaDescriptor descriptor, IndexReference index) { IndexReference existingIndex = schemaRead.Index(descriptor); return(existingIndex != IndexReference.NO_INDEX && existingIndex.Equals(index)); }