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;
    }