If any of your values in the array that is passed to min function is NULL, min will return null. Take care of that situation in your query by adding columnname is not null
min(1.2, 2, null, -1) // yields NULL not -1
so in your script, do this to pass the null values
if (!empty($row[4])) {
array_push($lows, $row[4]); //push lows to array
}