Tests are failing, I think it should be `$pager->getNbPages() ?: 1` or `$pager->getNbPages() > 0 ? $pager->getNbPages() : 1` instead of `($pager->getNbPages() != 0)?:1`