code: func (s *Subscription) IsValid() bool {
  	if s == nil {
  		return false
  	}
  	s.mu.Lock()
  	defer s.mu.Unlock()
  	return s.conn != nil
  }
docs: // IsValid returns a boolean indicating whether the subscription
  // is still active. This will return false if the subscription has
  // already been closed.