the empty bit I think can go away and just use the filter function before this one. [array], [strings] or some such way in the filter spec