i'd replace with None and `cond = {} if cond is None else cond` in the function body.