Say I do
var s = $(\'#something\');
and next I want to test if jQuery found #something, i.e. I want to test if s is empty.
s
if($("#something").length > 0 ){ // Element found } else{ // No element found }