I have the following line in my Rails app:

```
@images = @product.secondary_images.split(",")

```

When @product.secondary\_images has content in it, this runs fine. However, when there is no content, I get this error:

```
undefined method `split' for nil:NilClass

```

How can I assign another value to @images if there is no content in it?