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);
    }
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);
    }
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 ) ; }
Checks if a key is defined in the store

Can check through sub array using a path-like key
Can be used on any array by specifying the second argument

@see Atomik::get()
@param string $key The key which should be deleted
@param array $array The array on which the operation is applied
@return bool
Checks if a key is defined in the store