protected function normalizeDomain(string $domain = null): ?string
    {
        if ($domain !== null) {
            $domain = \mb_strtolower(\ltrim($domain, '.'));
        }

        return $domain;
    }