typeof module !== 'undefined' && typeof module.exports !== 'undefined' 

for consistency with the others