src/WorkerF/Tool/DotArr.php
public static function dotHas($array, $key)
    {
        if (empty($array) || is_null($key)) {
            return FALSE;
        }

        if (array_key_exists($key, $array)) {
            return TRUE;
        }

        foreach (explode('.', $key) as $segment) {
            if (! is_array($array) || ! array_key_exists($segment, $array)) {
                return FALSE;
            }

            $array = $array[$segment];
        }

        return TRUE;
    }
public static function dotHas($array, $key)
    {
        if (empty($array) || is_null($key)) {
            return FALSE;
        }

        if (array_key_exists($key, $array)) {
            return TRUE;
        }

        foreach (explode('.', $key) as $segment) {
            if (! is_array($array) || ! array_key_exists($segment, $array)) {
                return FALSE;
            }

            $array = $array[$segment];
        }

        return TRUE;
    }
Check if an item exists in an array using "dot" notation.

@param  array   $array
@param  string  $key
@return bool