Mysql Check If Json Array Javascript W3schools