code: func ServiceAccountHasSecrets(event watch.Event) (bool, error) {
  	switch event.Type {
  	case watch.Deleted:
  		return false, errors.NewNotFound(schema.GroupResource{Resource: "serviceaccounts"}, "")
  	}
  	switch t := event.Object.(type) {
  	case *v1.ServiceAccount:
  		return len(t.Secrets) > 0, nil
  	}
  	return false, nil
  }
docs: // ServiceAccountHasSecrets returns true if the service account has at least one secret,
  // false if it does not, or an error.