def check_declines(page):
    """Returns true if the page has been previously declined"""
    for rev in page.revisions():
        if (
            "Declining submission" in rev.comment
            or "Rejecting submission" in rev.comment
        ):
            return True
    else:
        return False