Typo correction in methodIsValid comment