i have a valid email a@example.com but the isValid function is incorrectly checking if the left side is greater than 1 character
please use a more standardized way to validate emails, e.g.
var_dump(filter_var('a@example.com', FILTER_VALIDATE_EMAIL));