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