public static function has($class, $name)
    {
        if (empty(self::$_events[$name])) {
            return false;
        }
        $class = Ioc::resolveClassName($class);
        do {
            if (!empty(self::$_events[$name][$class])) {
                return true;
            }
        } while (($class = get_parent_class($class)) !== false);

        return false;
    }