WL-3167 Simplify the isFiltered() test.

Simplify the isFiltered() logic and make it more readable.