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