public static function assertExists($hashMap, $entryName, $varName) {
        HashMap::assert($hashMap, $varName);
        return array_key_exists($entryName, $hashMap) ? $hashMap : Exceptions::InvalidTypeException('HashMapEntry', $varName . '[\'' . $entryName . '\']', 'undefined');
    }