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]);
        }
    }
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]);
        }
    }
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 ] ) ; } }
Clean the array.

@param string $property The property name
@param string $key      The first key of array
@param string $subKey   The sub key of array
Clean the array .