$subjectRef, 'childrenSubjectRef' => $childrenSubjectRef, 'bachelorSpeciality' => $bachelorSpeciality, ]; } public static function changeDisableFlagIfSpecialityIsEnlisted(bool $disable, array $model): bool { return $disable || BaseRenderer::getIsEnlistedFlagFromModel($model); } public static function getIsEnlistedFlagFromModel(array $model): bool { return isset($model['bachelorSpecialityModel']) ? $model['bachelorSpecialityModel']->is_enlisted : false; } }