Created helper function "check_for_row_in_list_table"