def check_proxy(host, port):
    """ Is there even an appearance of something resembling a proxy on the set
    up port?

    """
    if host is None or port is None:
        print('No proxy set up at options.yaml')
        return False
    try:
        import socket
        proxy = socket.socket()
        proxy.connect((host, port))
        return True
    except ConnectionRefusedError:
        print('No proxy on %s:%s?' % (host, str(port)))
        return False
    finally:
        proxy.close()
