public function has($keys)
    {
        $keys = (array) $keys;
        if (!$this->elements || $keys === []) {
            return false;
        }
        foreach ($keys as $key) {
            $items = $this->elements;
            if ($this->exists($items, $key)) {
                continue;
            }
            foreach (explode('.', $key) as $segment) {
                if (!is_array($items) || !$this->exists($items, $segment)) {
                    return false;
                }
                $items = $items[$segment];
            }
        }
        return true;
    }
public function has($keys)
    {
        $keys = (array) $keys;
        if (!$this->elements || $keys === []) {
            return false;
        }
        foreach ($keys as $key) {
            $items = $this->elements;
            if ($this->exists($items, $key)) {
                continue;
            }
            foreach (explode('.', $key) as $segment) {
                if (!is_array($items) || !$this->exists($items, $segment)) {
                    return false;
                }
                $items = $items[$segment];
            }
        }
        return true;
    }
public function has ( $ keys ) { $ keys = ( array ) $ keys ; if ( ! $ this -> elements || $ keys === [ ] ) { return false ; } foreach ( $ keys as $ key ) { $ items = $ this -> elements ; if ( $ this -> exists ( $ items , $ key ) ) { continue ; } foreach ( explode ( '.' , $ key ) as $ segment ) { if ( ! is_array ( $ items ) || ! $ this -> exists ( $ items , $ segment ) ) { return false ; } $ items = $ items [ $ segment ] ; } } return true ; }
Check if a given key or keys exists

@param  array|int|string $keys
@return bool
Check if a given key or keys exists