How did this function ever make it pass the review stage? It has no business doing here.

It should be removed and call sites replaced with `reduce!max(array)`.