Add when.filter.  Pass array indices in when.map and when.filter, keys in keys.map