def _is_valid(self, page_index):
        """
        Check if a page index will cause entries to fall outside valid range.
        """

        try:
            self._page_cb(page_index)
        except IndexError:
            return False
        else:
            return True

        Check if a page index will cause entries to fall outside valid range.
        
rtv/objects.py