codice:
$('.miaclasse').length > 0




http://api.jquery.com/length/