protected function libMapHasKey($args)
{
$map = $this->assertMap($args[0]);
$key = $this->compileStringContent($this->coerceString($args[1]));
for ($i = count($map[1]) - 1; $i >= 0; $i--) {
if ($key === $this->compileStringContent($this->coerceString($map[1][$i]))) {
return true;
}
}
return false;
}