How about `if (!global[name])`?