title: TypeError: 'null' is not an object
body: <p>This is my Prototype / JS code:</p>
  
  <pre><code>if($('myElemId')) {
      myVar = $('myElemId').checked;
  }
  </code></pre>
  
  <p>This is the error I get in Safari: <em>TypeError: 'null' is not an object (evaluating '$('myElemId').checked')</em></p>
  
  <p>Why is that and why is it only coming up in Safari? Do I get it right that the selector returns null and thus the checked state cant be fetched?</p>