check for moduleInfo.isValid()