public function has($selector)
    {
        $pointer = &$this->data;

        foreach (explode('.', $selector) as $field) {
            if (!array_key_exists($field, $pointer)) {
                return false;
            }

            $pointer = &$pointer[$field];
        }

        return true;
    }
public function has($selector)
    {
        $pointer = &$this->data;

        foreach (explode('.', $selector) as $field) {
            if (!array_key_exists($field, $pointer)) {
                return false;
            }

            $pointer = &$pointer[$field];
        }

        return true;
    }
public function has ( $ selector ) { $ pointer = & $ this -> data ; foreach ( explode ( '.' , $ selector ) as $ field ) { if ( ! array_key_exists ( $ field , $ pointer ) ) { return false ; } $ pointer = & $ pointer [ $ field ] ; } return true ; }
Check if structure has field identified by selector

@param string $selector

@return bool
Check if structure has field identified by selector