code: func (dac DirAvailableCheck) Check() (warnings, errorList []error) {
  	klog.V(1).Infof("validating the existence and emptiness of directory %s", dac.Path)
  	errorList = []error{}
  	// If it doesn't exist we are good:
  	if _, err := os.Stat(dac.Path); os.IsNotExist(err) {
  		return nil, nil
  	}
  
  	f, err := os.Open(dac.Path)
  	if err != nil {
  		errorList = append(errorList, errors.Wrapf(err, "unable to check if %s is empty", dac.Path))
  		return nil, errorList
  	}
  	defer f.Close()
  
  	_, err = f.Readdirnames(1)
  	if err != io.EOF {
  		errorList = append(errorList, errors.Errorf("%s is not empty", dac.Path))
  	}
  
  	return nil, errorList
  }
docs: // Check validates if a directory does not exist or empty.