Value of perPage will never be zero
Added `totalPages()` method
Fix CS