Could save two lines doing this:

```javascript
convertPathObjects = function (paths) {
    if (scope.pathAttribute) {
        paths = _.pluck(paths, scope.pathAttribute);
    }
    return paths;
};
```