[jQuery] determining if table contains rows

[jQuery] determining if table contains rows


After "deleting" a row, I want to test if there are any more rows with
the tbody. If not, I want to hide the thead.
This logic test returned false:
$('tbody', '#documents').html() == ''