protected function isNotLastItemInArray($totalOrderByElements, $index) { return $totalOrderByElements !== $index + 1; }