Here we could also run _.compact() to remove nulls/undefineds and remove a lot of the repetitive conditionals and _contains() calls above.