def METHOD_NAME():
    if salt.utils.platform.is_windows():
        permanent_hive = "HKCU"
        permanent_key = "Environment"
        if permanent == "HKLM":
            permanent_hive = "HKLM"
            permanent_key = (
                r"SYSTEM\CurrentControlSet\Control\Session"
                r" Manager\Environment"
            )
        out = __utils__["reg.read_value"](
            permanent_hive, permanent_key, _norm_key(key)
        )
        return out["success"] is True
    else:
        return False