def funded_by_grant(paper, grant_id):
    """Return True if the paper was funded by the specified grant.
    """
    try:
        if grant_id in paper['funding']:
            return True
    except Exception as e:
        pass

    return False