Better way to see if an object is present in JavaScript
<p>Is </p>

<pre><code>if(!!object)
{
 // do something if object found
}
</code></pre>

<p>a much more guarenteed way to see if any object is present?</p>

<pre><code>if(object)
{

}
</code></pre>
