public function isActive() { $active = $this->cookie !== null && $this->cookie != ''; if ($this->sizeLimit && $this->sizeLimit === $this->pageSize) { $active = false; } return $active; }