protected function cleanArray($property, $key, $subKey): void
    {
        $val = &$this->{$property};
        unset($val[$key][$subKey]);

        if (\array_key_exists($key, $val) && 0 === \count($val[$key])) {
            unset($val[$key]);
        }
    }