has-filter optimizations