public function isEmpty() { if (!$this->isInitialized()) { return !$this->count(); } return parent::isEmpty(); }