Don't omission `{ }`
```php
if($record===null) {
```