code: func hasMultipleNonPendingChallenges(challenges []*corepb.Challenge) bool {
  	nonPending := false
  	for _, c := range challenges {
  		if *c.Status == string(core.StatusValid) || *c.Status == string(core.StatusInvalid) {
  			if !nonPending {
  				nonPending = true
  			} else {
  				return true
  			}
  		}
  	}
  	return false
  }
docs: // hasMultipleNonPendingChallenges checks if a slice of challenges contains
  // more than one non-pending challenge