public function shouldAlert($type) { return (bool) $this->getPreference(static::getNotificationPreferenceKey($type, 'alert')); }