<?php
class Box {
    public array $data = ['v' => 1];
}

$box = new Box();
echo isset($box->data['v']) ? "v=yes\n" : "v=no\n";
echo isset($box->data['missing']) ? "missing=yes\n" : "missing=no\n";
echo $box->data['v'];
echo "\n";
