return false; } if (getOwnedContentsCount() > 0) {
    private boolean canBeDeleted() {        if (getStudentsCount() > 0) {            return false;        }        if (getSentSmsCount() > 0) {            return false;        }        if (getExportGroupingReceiversCount() > 0) {            return false;        }        if (getPersonFunctions().size() > 0) {            return false;        }        if (getAssociatedQualificationsCount() > 0) {            return false;        }        if (getAssociatedAlteredCurriculumsCount() > 0) {            return false;        }        if (getEnrolmentEvaluationsCount() > 0) {            return false;        }        if (getExportGroupingSendersCount() > 0) {            return false;        }        if (getEditedWebSiteItemsCount() > 0) {            return false;        }        if (getResponsabilityTransactionsCount() > 0) {            return false;        }        if (getMasterDegreeCandidatesCount() > 0) {            return false;        }        if (getCreatedContentsCount() > 0) {            return false;        }        if (getGuidesCount() > 0) {            return false;        }        if (getProjectAccessesCount() > 0) {            return false;        }        if (getPersonAuthorshipsCount() > 0) {            return false;        }        if (getOwnedContentsCount() > 0) {            return false;        }        if (getEmployee() != null) {            return false;        }        if (getExternalPerson() != null) {            return false;        }        if (getTeacher() != null) {            return false;        }        if (getAssociatedPersonAccount() != null) {            return false;        }        if (getGrantOwner() != null) {            return false;        }        return true;    }