Simply replacing `x?.y` with `x && x.y` and `x ?? y` with `x || y` will make this work with older node versions.