r = $request; $this->id = $id; } function get($name, $def = null) { $v = $this->r->get($name); $id = $this->id; if ($id && is_array($v)) { return $v[$id] ?? $def; } return $v; } }