ah right. still simpler with a map:

```javascript
var attrs = _.map(attr, function(attribute, index) {
  return _.has(val, index) ? val[index] : null;
});
```