added table.empty utility function