/** * Checks if the MongoDB server has the collection. * * @param collection the collection name * @return true if the server has the collection, false otherwise */ protected boolean hasCollection(String collection) { return MongoDBConnectionHelper.hasCollection(database, collection); }