No, you should write it as `nA = max(nA, colSum)` so that it handles `NaN` correctly.