```php
if(!isset($newValues['displayname'])) {
	$newValues['displayname'] = 'unnamed';
}
```
Our coding guidelines says to always use curlies. This is old code so there are still a lot of them missing as you can see.