ah well another lool at the documentation says it returns a "ValidationResult" instead of just true/false - try
1. satsifying your self that you coudl always force it to return false and the error message - e.g. if (1)
2. interpreting ValidationResult for the real answer and using that in the "if"