Is `if (isset($original[$key]) && ($original[$key] instanceof static::$_classes['set'] || $original[$key] instanceof static::$_classes['entity'])` wouldn't be considered to be more generic ?