jQuery vérifie si le parent a 2 chlds

if ( $('#myfav').children().length > 0 ) {
     // do something
}
Enthusiastic Echidna