Unncessarily verbose. `$isEmail = filter_var($uid, FILTER_VALIDATE_EMAIL)` is enough.