Php Check If Array Contains Key In Hashmap Javascript W3schools