>>I assume this comment was incorrect and that page is actually 0-based, yes?

The way it's used as an index and the 'page < length' check made it seem so...

I hope so, or I'll file a quick pull request! :)