made _.filter work more like my _.map (returns an object if an object is given)