def has_webhook (hooks, url):
    """Goes through all the web hooks checking if any URL references the given URL"""
    found = False

    for temp_hook in hooks:
        if temp_hook.config['url'].lower() == url.lower():
            found = True

    return found