[jQuery] in 1.1.1, get(0) returns the document when it

[jQuery] in 1.1.1, get(0) returns the document when it

So far I tried revision 1172 and it does not fix the issue.
What is the clean approach to test if any object is found?
if( $('nonexistent')[0] )?
if( $('nonexistent').length>0)?
if( $('nonexistent').get(0))?
Jan.