public function isEmpty() { $count = $this->getTotalCount(); $offset = $this->query->getFirstResult(); return $count <= $offset; }