def _exists_agave(uri, agave):
    """
    Check if agave URI exists.

    Args:
        uri: parsed URI to check.
        agave: dict that contains:
            agave_wrapper: Agave wrapper object.

    Returns:
        True if the URI exists, False if it doesn't or if there's an error.

    """
    if agave['agave_wrapper'].files_exist(uri['authority'], uri['chopped_path']) is False:
        return False

    return True