Added tryGet to hashmap