@shadyvb Yoda style missing here, should be:

```php
'deleted' != $record->action
```