can't we check just ``empty($row)``?