From manual page: https://php.net/function.max
Different from what the manual says "If an empty array is passed, then false will be returned and an E_WARNING error will be emitted.", PHP versions starting with 8.0 throw a fatal when passed an empty array. Same with the min() function.
