Why not just do `region_code = tree['itree_region_code'] or region_default` and drop this if clause?