public static function checkMail(string $mail): bool
    {
        $securisedMail = Secure::secureData($mail, 'email', false);
        
        if ($securisedMail === false) {
            return false;
        }
        
        return true;
    }
public static function checkMail(string $mail): bool
    {
        $securisedMail = Secure::secureData($mail, 'email', false);
        
        if ($securisedMail === false) {
            return false;
        }
        
        return true;
    }
public static function checkMail ( string $ mail ) : bool { $ securisedMail = Secure :: secureData ( $ mail , 'email' , false ) ; if ( $ securisedMail === false ) { return false ; } return true ; }
Check if an email address is valid

@param string $mail The email address to check

@return boolean
Check if an email address is valid