If either of the arrays are 0-length, then we should return the other as is instead of unnecessarily creating a copy.