def METHOD_NAME(booking):
    return (
        (webhook.siteid == "" or booking["siteid"] == webhook.siteid)
        and (webhook.roomid == "" or booking["roomid"] == webhook.roomid)
        and (webhook.contact == "" or webhook.contact in str(booking["contact"]))
    )