code: func (r *PCPRegistry) HasMetric(name string) bool {
  	r.metricslock.RLock()
  	defer r.metricslock.RUnlock()
  
  	_, present := r.metrics[name]
  	return present
  }
docs: // HasMetric returns true if the registry already has a metric of the specified name