Don't use ternary expression if it is not an assignation.
Do
```
if(!empty($institution_name)) {
  $institution->addName($dto_util->_set_LocalizedStringDto($institution_name));
}
```