Actually, even that would fail `li3_quality` checks. The correct way to do something like that would be, for example.

```php
$shouldConvert = (isset($original[$key]) && (
    $original[$key] instanceof static::$_classes['set'] ||
    $original[$key] instanceof static::$_classes['entity']
));

if ($shouldConvert) {
    // ...
}
```