code: func (lb *LoadBalancerRR) ServiceHasEndpoints(svcPort proxy.ServicePortName) bool {
  	lb.lock.RLock()
  	defer lb.lock.RUnlock()
  	state, exists := lb.services[svcPort]
  	// TODO: while nothing ever assigns nil to the map, *some* of the code using the map
  	// checks for it.  The code should all follow the same convention.
  	return exists && state != nil && len(state.endpoints) > 0
  }
docs: // ServiceHasEndpoints checks whether a service entry has endpoints.