Check my isValid method.