If jquery does not find a match, is an error thrown?
<p>Will an error be thrown if jquery does not find any items of class box-typical-body?</p>

<pre><code> $('.box-typical-body').jScrollPane(jScrollOptions);
</code></pre>

<p>If so, then as far as I can tell, the correct code would be:</p>

<pre><code> if ( $( ".box-typical-body" ).length ) {
    $('.box-typical-body').jScrollPane(jScrollOptions);
 }
</code></pre>

<p>I have tested, and it appears to be so, but am a novice at jquery and want to make sure.</p>