Javascript See If Array Function In Php