Php Test If Array Contains Javascript