def exists(storage, indexname=None):
    """Deprecated; use ``storage.index_exists()``.
    :param storage: a store.Storage object.
    :param indexname: the name of the index. If None, the default index name is
        used.
    """
    return storage.index_exists(indexname)
