from ssl import _create_unverified_context
from urllib.error import HTTPError, URLError
from urllib.request import urlopen


def url_is_alive(url: str) -> object:
    """
    Checks that a given URL is reachable
    """

    try:
        return urlopen(url, context=_create_unverified_context())
    except HTTPError:
        return False
    except URLError:
        return False