added lodash dependency
- just used for array check, should be optimized