Yes it does work, because if Intl === undefined, the rest won't even get evaluated, since true || foo always == true.