 <p>Correct is in the eye of the beholder most of the time. There's often multiple ways to solve an issue. If you want to check for the presence of a bound function and the existence of a DOM Node, then you'll need to capture both after the <code>ready</code> function and compare the <code>typeof</code> variable to function to see if it's true.</p> <pre><code>$(function(){ if($('#flexslider').length &amp;&amp; typeof flexslider == 'function'){ } }); </code></pre>