If Not Empty Array Javascript Mdn Reference