makaing ArrayFilter::filter compatible with Filter::filter