Better:

```ruby
row << (result[i].nil? ? "" : result[i])
```