Php Check If Array Key Value Js