code: func (s *State) HasResources() bool {
  	if s == nil {
  		return false
  	}
  	for _, ms := range s.Modules {
  		if len(ms.Resources) > 0 {
  			return true
  		}
  	}
  	return false
  }
docs: // HasResources returns true if there is at least one resource (of any mode)
  // present in the receiving state.