def METHOD_NAME(scheme: str, timeout: int = 0):
    if timeout <= 0:
        timeout = 10 * 60
    elapsed = 0
    while not __has_exit and elapsed < timeout:
        for k, v in __proxy_list.items():
            if v and (not scheme or k == scheme):
                return True
        time.sleep(0.1)
        elapsed += 0.1