code: func isEmpty(f *os.File) (bool, error) {
  	fi, err := f.Stat()
  	if err != nil {
  		return false, trace.Wrap(err)
  	}
  
  	if fi.Size() > 0 {
  		return false, nil
  	}
  
  	return true, nil
  }
docs: // isEmpty checks if the file is empty or not.