code: func (as *AgentState) HasConflict(pUnitName string, pConflicts []string) (bool, []string) {
  	found := false
  	conflicts := []string{}
  
  	for _, eUnit := range as.Units {
  		if pUnitName == eUnit.Name {
  			continue
  		}
  
  		if hasStringInSlice(eUnit.Conflicts(), pUnitName) {
  			conflicts = append(conflicts, pUnitName)
  			found = true
  			break
  		}
  		if hasStringInSlice(pConflicts, eUnit.Name) {
  			conflicts = append(conflicts, eUnit.Name)
  			found = true
  			break
  		}
  	}
  
  	if !found {
  		return false, []string{}
  	}
  
  	return true, conflicts
  }
docs: // HasConflict determines whether there are any known conflicts with the given Unit