Refactored checking in list table to be a seperate function