if (markSheetEnrolmentEvaluationBeans.size() == 0) {
if (markSheetEnrolmentEvaluationBeans == null || markSheetEnrolmentEvaluationBeans.size() == 0) {
    private void checkParameters(CurricularCourse curricularCourse, ExecutionPeriod executionPeriod,            Teacher responsibleTeacher, Date evaluationDate, MarkSheetType markSheetType,            MarkSheetState markSheetState, Collection<MarkSheetEnrolmentEvaluationBean> markSheetEnrolmentEvaluationBeans) {        if (curricularCourse == null || executionPeriod == null || responsibleTeacher == null                || evaluationDate == null || markSheetType == null || markSheetState == null) {            throw new DomainException("error.markSheet.invalid.arguments");        }        if (markSheetEnrolmentEvaluationBeans.size() == 0) {            throw new DomainException("error.markSheet.create.with.invalid.enrolmentEvaluations.number");        }        checkIfTeacherIsResponsibleOrCoordinator(curricularCourse, executionPeriod, responsibleTeacher);        checkIfEvaluationDateIsInExamsPeriod(getExecutionDegree(curricularCourse, executionPeriod), executionPeriod, evaluationDate, markSheetType);    }