Added CollectionExists function