i want to return false when instantiating an object
<p>well, this is not an easy question, but in the <a href="http://jsfiddle.net/DpdVd/" rel="nofollow">fiddle</a> you will see a simplified version of  what it is i am trying to do:</p>

<p>I want to instantiate an object, do all the operation i need to initialize it, but i want the statement:</p>

<pre><code>var obj = new class; 
</code></pre>

<p>to return 'false' to obj given some conditions.</p>

<p>here's the code anyhow:</p>

<pre><code>var cl = function(id){
   this.init(id);
   if(this.id &gt; 5){
       return false;
   }
};


cl.prototype = {
    init: function(id){
        this.id = id;                        

    }
}

var arr = [];

for(i = 0; i &lt; 10; i++){
    var obj = new cl(i);
    if(obj){
         arr.push(obj);
    }
}

console.log(arr);
</code></pre>

<p>I know the end result can be achieved by creating a control property to the object, but i am curious to if there is any pattern to do this cleaner.</p>
