Can't you write that as `out.layers = omap.iterset.layers or 0`?