title: Shorter way to check for undefined in JS
body: <p>Looking for a better idiom to use..</p>
  
  <pre><code>var x = module;  // Reference Error
  var x = typeof module==='undefined' ? window : module;
  </code></pre>
  
  <p>is there a shorter way to check for the existence of module?</p>