$topics['total_pages'] = ceil($total['total'] / $itemsPerPage);