(Issue 303) Converted _.each to a _.compact