generalized .length check on functions
<p>When i write a function in JS or jQuery and a parameter is required, i use the <code>if something.length</code> trick... </p>

<pre><code>this.example = function(e) {
  if ($(e).length) {
    /*blablabla*/
  } else {
    return false;
  }
}
</code></pre>

<p>But i dont want to do this in all functions. Is there a way to generalize this?</p>

<p>like:</p>

<pre><code>this.ck = function(e) {
  return function(e){
    if (!(e.length)) { return false;}
  }
}

this.example = function(e) {
     ck(e)
    /*blablabla*/

}
</code></pre>
