'total_cost' => is_numeric($row['new_cost']) ? $row['new_cost'] : $row['total_cost'],
'total_cost' => is_numeric($row['new_cost']) && $row['new_cost'] > 0 ? $row['new_cost'] : $row['total_cost'],
'total_cost' => $row['new_cost'] ?: $row['total_cost'],