src/Collection/DotNotationCollection.php
public function has(string $path): bool
    {
        $keys = $this->explode($path);
        $array = $this->items;
        foreach ($keys as $key) {
            if (!array_key_exists($key, $array)) {
                return false;
            }
            $array = $array[$key];
        }
        return true;
    }
public function has(string $path): bool
    {
        $keys = $this->explode($path);
        $array = $this->items;
        foreach ($keys as $key) {
            if (!array_key_exists($key, $array)) {
                return false;
            }
            $array = $array[$key];
        }
        return true;
    }
public function has ( string $ path ) : bool { $ keys = $ this -> explode ( $ path ) ; $ array = $ this -> items ; foreach ( $ keys as $ key ) { if ( ! array_key_exists ( $ key , $ array ) ) { return false ; } $ array = $ array [ $ key ] ; } return true ; }
Check if we have path
@param  string $path
@return bool
Check if we have path