I wonder if it is possible to implement MongoDB.collectionExists() without calling MongoDB.getCollectionNames().
I found this to be a performance bottleneck when there are lots of collections.
The only workaround was to cache the list of collections in a Map, when possible.