protected function assertInitiated($key) {
        $current = &$this->query;
        $keys = explode(".", $key);
        foreach ($keys as $element) {
            if (!array_key_exists($element, $current)) {
                $current[$element] = [];
            }
            $current = &$current[$element];
        }
    }
protected function assertInitiated($key) {
        $current = &$this->query;
        $keys = explode(".", $key);
        foreach ($keys as $element) {
            if (!array_key_exists($element, $current)) {
                $current[$element] = [];
            }
            $current = &$current[$element];
        }
    }
protected function assertInitiated ( $ key ) { $ current = & $ this -> query ; $ keys = explode ( "." , $ key ) ; foreach ( $ keys as $ element ) { if ( ! array_key_exists ( $ element , $ current ) ) { $ current [ $ element ] = [ ] ; } $ current = & $ current [ $ element ] ; } }
Checks and creates the required structure

@param string $key A dot [.] separated path to be created/checked
@return void
Checks and creates the required structure