Checking if object not null before accessing property
<pre><code>var how = $('how');
var id = $('myId');
if ((how != null &amp;&amp; !how.value.blank()) || myId != null) {
    return true;
} else {
    alert('Error');
}
</code></pre>

<p>Is there an easier way to check for not null and checking if the value of that element is blank without having to do both != null and then calling value? </p>