Makes sense, can be changed to
```js
var directives = locator(name);
if (directives) result.push.apply(result, directives);
```