code: func (s *State) IsRemote() bool {
  	if s == nil {
  		return false
  	}
  	s.Lock()
  	defer s.Unlock()
  
  	if s.Remote == nil {
  		return false
  	}
  	if s.Remote.Type == "" {
  		return false
  	}
  
  	return true
  }
docs: // IsRemote returns true if State represents a state that exists and is
  // remote.