def METHOD_NAME(hive=winreg.HKEY_LOCAL_MACHINE, key=None):
    try:
        with winreg.OpenKey(hive, key, 0, winreg.KEY_READ):
            exists = True
    except:
        exists = False
    return exists