You can add overloaded definition of maxElseZero which takes Iterable[Double]