code: func HasStage(s []Stage, name string) (int, bool) {
  	for i, stage := range s {
  		// Stage name is case-insensitive by design
  		if strings.EqualFold(stage.Name, name) {
  			return i, true
  		}
  	}
  	return -1, false
  }
docs: // HasStage looks for the presence of a given stage name