nit: if {!string} means that it can never be null, why do we `if (!compiledFilter)` in the first line?