private static bool IsNameOrValueNull(this string keyName, RegistryKey key) => string.IsNullOrEmpty(keyName) || (key == null);