def check_stop_flag(con) -> bool:
    """
    Check the global stop flag. Present is True, absent is False.
    """
    k, v = con.kv.get("service/rebootmgr/stop")
    if v:
        return True
    return False