max() returns RuntimeException when array is all zeros [0,0,0] or when the first value in the array is zero [0, 355].
If the array is [355,0] it works.
This is the error I am getting .
RuntimeException RuntimeException: Argument 0 of max encountered a type mismatch in sequence: null, number
mtdowling->jmespath.php->src->FnDispatcher->fn_max()