Fix condition

The condition should be either:
typeof module.cache  === 'undefined' or
module.cache  === undefined