I just spent \'hours\' with the following scenario: (all back to the basics)
$(\'#typo\').bind(\'click\' etc ...
I had a typo in the selec
var element = $('#typo'); if (element.length > 0) { // element exists }
Short of that, you would have to modify the jQuery source code to get that behavior.