If you know that `currentPage === 0`, then why not simplify this line and use: `pages[1]`?