My normal formulation for this is one of:
not exists key "HKEY_LOCAL_MACHINE\System\currentcontrolset\services\kdc" whose (exists value "ApplyDefaultDomainPolicy" whose (it as string as integer = 0) of it) of native registry
or
exists key "HKEY_LOCAL_MACHINE\System\currentcontrolset\services\kdc" whose (not exists value "ApplyDefaultDomainPolicy" whose (it as string as integer = 0) of it) of native registry
The first will be true if the value does not exist or its value != 0, independent of the key’s existence
The second will be true if the key exists, but the value is not present or is present but != 0