refactoring: lodash stops looping if one data is falsy..