Cakephp3.8-Displayed the more pages when i have no Record

I am using the Cakephp3.8 paginate function for displaying the records. when I have records its working normally. when I don’t have any records it’s still displayed the paginate Numbers. How can I remove?

   $paginate = [
    'limit' => 8,
     'page' => 1,
 =>        'order' => [
        'Articles.title' => 'asc'
    ]
];


In Template = $this->General->paginate_function($item_per_page, $page_number, $get_total_rows, $total_pages);

What does General->paginate_function look like? That’s not the standard pagination helper.