/** * @return bool */ public function isEmpty() { return is_null($this->loi) || is_null($this->loi->getId()); }