Javascript Array Not Null Mysql Compiler