if
Removing a redundant if/else that shouldn't be possible now that the currentPage is clamped between 1 and totalPages.