code: func (s *State) HasResources() bool {
  	if s.Empty() {
  		return false
  	}
  
  	for _, mod := range s.Modules {
  		if len(mod.Resources) > 0 {
  			return true
  		}
  	}
  
  	return false
  }
docs: // HasResources returns true if the state contains any resources.
  //
  // This is similar to !s.Empty, but returns true also in the case where the
  // state has modules but all of them are devoid of resources.