$pagination->hasPages()
Checks if there are any pages at all
$pagination->hasPages(): bool
Return type
bool
Parent class
  Kirby\Cms\Pagination    inherited from Kirby\Toolkit\Pagination  
Example
<?php
$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();
?>
<!-- foreach loop with subpages -->
<?php if($pagination->hasPages()): ?>
<!-- put pagination here -->
<?php endif ?>