src/Primitive/Support/Arr.php
public static function has($array, $key)
    {
        if (empty($array) || is_null($key)) return false;

        if (array_key_exists($key, $array)) return true;

        return _data_get($array, $key, new Exception('Not Found')) instanceof Exception ? false : true;
    }
public static function has($array, $key)
    {
        if (empty($array) || is_null($key)) return false;

        if (array_key_exists($key, $array)) return true;

        return _data_get($array, $key, new Exception('Not Found')) instanceof Exception ? false : true;
    }
Check if an item exists using "dot" notation.

@param  array|object  $array
@param  string $key

@return bool