isDisabledByConfig() && $this->hasAtLeastOneAccount()); } private function isDisabledByConfig(): bool { return $this->config->get('monica.disable_signup', false); } private function hasAtLeastOneAccount(): bool { return ! empty(Account::first()); } }