Fixed a check for Arrays

There would a be a problem with merging arrays otherwise.