def declr_has_sym(declr, sym):
    """Check if the given declr has sym"""

    for existing in declr:
        if existing["kind"] == sym["kind"] and existing["name"] == sym["name"]:
            return True

    return False