def repository_exists(client, repository=None):
    """
    Verify the existence of a repository

    :arg client: An :class:`elasticsearch.Elasticsearch` client object
    :arg repository: The Elasticsearch snapshot repository to use
    :rtype: bool
    """
    if not repository:
        raise MissingArgument('No value for "repository" provided')
    test_result = get_repository(client, repository)
    if repository in test_result:
        logger.info("Repository {0} exists.".format(repository))
        return True
    else:
        logger.info("Repository {0} not found...".format(repository))
        return False
dataset/ETHPy150Open elastic/curator/curator/utils.py/repository_exists/original