Javascript If Array Is Not Empty Sql Practice W3schools