public static function isValidEmail(string $email, bool $sanitize = true): bool
    {
        // Remove all illegal characters from email
        if (true === $sanitize) {
            $email = filter_var($email, FILTER_SANITIZE_EMAIL);
        }
        return !filter_var($email, FILTER_VALIDATE_EMAIL) === false;
    }