imo `is_object($original[$key])` is not needed here since you are using `instanceof`. Also, a correct typo could be:
```php
if (isset($original[$key]) &&
	($original[$key] instanceof static::$_classes['set'] ||
	$original[$key] instanceof static::$_classes['entity'])
) {
/*code here*/
}
```