It would be better to introduce `Module.HasSubmodules` - in the future it will be easier to refactor (eg. to cache HasSubmodules value)