Isn't `global.type` enough?