code: func IsValid(ctx context.Context, o PfconfigObject) bool {
  	ns := normalizeNamespace(ctx, metadataFromField(ctx, o, "PfconfigNS"))
  	controlFile := "/usr/local/pf/var/control/" + ns + "-control"
  
  	stat, err := os.Stat(controlFile)
  
  	if err != nil {
  		log.LoggerWContext(ctx).Error(fmt.Sprintf("Cannot stat %s. Will consider resource as invalid", controlFile))
  		return false
  	} else {
  		controlTime := stat.ModTime()
  		if o.GetLoadedAt().Before(controlTime) {
  			log.LoggerWContext(ctx).Debug(fmt.Sprintf("Resource is not valid anymore. Was loaded at %s", o.GetLoadedAt()))
  			return false
  		} else {
  			return true
  		}
  	}
  }
docs: // Checks wheter the LoadedAt field of the PfconfigObject (set by FetchDecodeSocket) is before or after the timestamp of the namespace control file.
  // If the LoadedAt field was set before the namespace control file, then the resource isn't valid anymore
  // If the namespace control file doesn't exist, the resource is considered invalid