public static function get($object, $key, $default = null)
    {
        if (!static::has($object, $key))
            return $default;

        if (static::isArray($object))
            return $object[$key];

        if (static::isObject($object))
            return $object->$key;

        return $object;
    }