if it intended to pass if valid_module_classes is set, but empty lst? (should this be ```if is None```?