src/Northern/Common/Util/ArrayUtil.php
public static function exists(array &$arr, $path, $delimiter = '.')
    {
        if (array_key_exists($path, $arr)) {
            return true;
        }

        $segments = explode($delimiter, $path);

        $cur = $arr;

        foreach ($segments as $segment) {
            if (! is_array($cur) or ! array_key_exists($segment, $cur)) {
                return false;
            }

            $cur = $cur[$segment];
        }

        return true;
    }
public static function exists(array &$arr, $path, $delimiter = '.')
    {
        if (array_key_exists($path, $arr)) {
            return true;
        }

        $segments = explode($delimiter, $path);

        $cur = $arr;

        foreach ($segments as $segment) {
            if (! is_array($cur) or ! array_key_exists($segment, $cur)) {
                return false;
            }

            $cur = $cur[$segment];
        }

        return true;
    }
public static function exists ( array & $ arr , $ path , $ delimiter = '.' ) { if ( array_key_exists ( $ path , $ arr ) ) { return true ; } $ segments = explode ( $ delimiter , $ path ) ; $ cur = $ arr ; foreach ( $ segments as $ segment ) { if ( ! is_array ( $ cur ) or ! array_key_exists ( $ segment , $ cur ) ) { return false ; } $ cur = $ cur [ $ segment ] ; } return true ; }
Tests if a key or path exists in a specified array. If the specified key or
path exists this method will return TRUE otherwise FALSE.

@param  array   $arr
@param  string  $path
@param  string  $delimiter
@return boolean
Tests if a key or path exists in a specified array . If the specified key or path exists this method will return TRUE otherwise FALSE .