check id jquery object is empty : <p>I'm trying to check if a jquery object is null  to use it this way</p>

<pre><code>var reminder_history_div = $(".history-container");
        if(reminder_history_div)
            reminder_history_div.scrollTop(reminder_history_div[0].scrollHeight);
</code></pre>

<p>but <code>reminder_history_div</code> is not null or empty its and object ,with some info ,what is the correct way to check if is empty?maybe:</p>

<pre><code>if(reminder_history_div.length &gt; 0)
</code></pre>
