`if not filt:` also works and is preferred.

What is `filt` by the way? Is it a filter? Please use more descriptive variable names.