add table_has_content? and table_has_no_content? helpers