may become
```
if (source instanceof Array)
 ```
to improve performance ?