Checks whether an index exists on a MongoDB collection