Should be:
```php
if (empty($field)) {
    return null;
}