Remove unused variable in max and min

Remove artifact `isArr` variable