public function getUserNotificationSetting(User $user, $name, $default = true)
    {
        if (false === $user->getNotificationSettings()->containsKey($name)) {
            return $default;
        }

        return $user->getNotificationSettings()->get($name)->getValue();
    }