def _diff_revision_exists(review_request, diff_revision):
    """Returns True if the diff revision for the review request exists."""
    num_diffs = review_request.diffset_history.diffsets.get_query_set().count()
    diff_revision = int(diff_revision)

    if diff_revision <= 0 or diff_revision > num_diffs:
        return False

    return True