public static function assert($value, $varName) {
        if(!is_array($value)) return Exceptions::InvalidTypeException('HashMap', $varName, $value);
        foreach($value as $key => $v) HashMapEntry::assert([$key => $v], $varName);

        return $value;
    }