private bool TableExists(string _TableName) { var filter = new BsonDocument("name", _TableName); var options = new ListCollectionNamesOptions { Filter = filter }; return(MongoDB.ListCollectionNames(options).Any()); }