Remove obsolete isValid function.
modules field is now removed by fixer (with warning).