Check if an object exists by its selector, return a boolean value with jQuery or Javascript
<p>I need to see if an object is present on the page by its selector.</p>

<p>This WOULD normally do it:</p>

<p><code>startpageentry = $('#' + startpageid)</code></p>

<p>But that doesn't return anything. I need a boolean I can put into an if statement like this:</p>

<p>if (startpageentry != 'false') {}</p>

<p>How can I do this?</p>
