Why are you checking `haveToPaginate()` twice ?