Future<bool> get exists { if (parent != null) { return parent!.hasCollectionId(collectionId); } else { return storageDatabase.hasCollectionId(collectionId); } }