I think `&& root.require` would suffice. `typeof` would be necessary if you were using `require` on its own.

I might be mistaken though! I wonder what the best practices are.