function isEmpty() { if ($this->getComplexParent()) { return parent::isEmpty() && !SJB_UploadFileManager::isFileReadyForUpload($this->property_info['id'], $this->getComplexParent()); } return parent::isEmpty() && !SJB_UploadFileManager::isFileReadyForUpload($this->property_info['id']); }