public static function has($key, $array = null)
    {
        $segments = self::splitArrayPath($key);
        $key = array_pop($segments);
        $parentArrayKey = count($segments) ? implode('.', $segments) : null;
        $parentArray = self::getRef($parentArrayKey, $array);
        return !empty($parentArray) && self::arrayHasKey($key, $parentArray);
    }