def _get(d, key, default=None): v = d.get(key) return default if v in (None, "", [], {}) else v