simplify Lodash usages