Return faster from isValidValue