All the card's content should go into a div with class 'content'. Check that div when checking if card is empty.