Optimize Module.has for multiple variables.