Should this be yoda?
`if ( 'trashed' !== $record->action )`

Also what do you think about, testing for true here, instead of false?
```
if ( 'trashed' === $record->action ) {
    ...
} else {
    ...
}
```