Refactor common uses of list-checking