rather than doing `|| []`, you should assert dependencies is an array.

`assert(_.isArray(dependencies), 'dependencies should be an array')`