new class that abstracts some common pagination logic
new method to test for the nonexistence of a key in a map