fix bug in should_filter: if filter isn't specified, it's None, not empty