refactor to use new function to check for rows in list table