What is being returned by `concatOther` when there is no values? Is it an empty array, or null/undefined?
It might help to post the code for that function aswell.
Trying to call map on null or undefined will cause a TypeError, that could be whats stopping the rest of the code from running.