public function lset($collection, $key, $index, $value)
{
$list = $this->getKey($collection, $key, []);
if ($index < 0) {
$index = count($list) - abs($index);
}
if (isset($list[$index])) {
$list[$index] = $value;
$this->setKey($collection, $key, $list);
return true;
}
return false;
}