Check If Array Not Empty Javascript