Check Empty Value In Array Javascript Concatenate Arrays