I have this jquery:

```
var $gallery = $('#slideshow'),
    $active = $gallery.find('img:visible'),
    $next = $active.next().length ? $active.next() : $gallery.find('img').first();

```

To be easier to understand, how do I transform the third line into an if/else statement?