Use this code to check whether there is any data in the table or not. If there is no data in the table it will display the message. Else it will continue the necessary steps.
if(table_RowCount == 0)
tl_step("table_RowCount",FAIL,"The Table does not have any rows.");