src/Util/JsonArray.php
public function has($path)
    {
        $chunks = $this->splitPath($path);
        $scope  = $this->data;

        while (null !== ($sub = array_shift($chunks))) {
            if (isset($scope[$sub])) {
                $scope = $scope[$sub];
            } else {
                return false;
            }
        }

        return true;
    }
public function has($path)
    {
        $chunks = $this->splitPath($path);
        $scope  = $this->data;

        while (null !== ($sub = array_shift($chunks))) {
            if (isset($scope[$sub])) {
                $scope = $scope[$sub];
            } else {
                return false;
            }
        }

        return true;
    }
public function has ( $ path ) { $ chunks = $ this -> splitPath ( $ path ) ; $ scope = $ this -> data ; while ( null !== ( $ sub = array_shift ( $ chunks ) ) ) { if ( isset ( $ scope [ $ sub ] ) ) { $ scope = $ scope [ $ sub ] ; } else { return false ; } } return true ; }
Check if a value exists.

@param string $path The path of the value.

@return bool
Check if a value exists .