code: func isDiscreteResource(values []string) (int64, bool) {
  	if len(values) != 1 {
  		return int64(0), false
  	}
  
  	u, err := discreteResourceVal(values[0])
  	if err != nil {
  		return int64(0), false
  	}
  
  	return u, true
  
  }
docs: // isDiscreteResource returns true if the array of resources is a
  // Discrete Resource.
  // e.g: res = [1]