override $(element) expression to achieve the same functionality as $(element).length
<p>Is it possible what I have mentioned in the title?</p>

<p>I would like to use this for checking existence of an element like so:</p>

<pre><code>if($('#item')){...}
</code></pre>

<p>Any ideas?</p>

<p>That's the code where I use it:</p>

<pre><code>if($('#auto_redirect_in_3_s').length)//I "wished" $('#auto_redirect_in_3_s')
    {
        var timer = setTimeout("document.location.href = index_url;",3000);
    }
</code></pre>

<p>description:
If I put  in php code it means that the page have to redirect in 3 s.</p>
