Typescript Loop Through An Hashmap Containskey