I suggest `if not criteria` which is different from `if criteria is None`. The first should evaluate to `False` for both `criteria == None` and `criteria = ''`.