how about:

```ruby
(datalists = alps_datalists['ext']) && datalists..each { |dl| builder.tag!('ext', dl) }
```1