I was thinking about adding a with attribute to selectively load modules but realized I would still need to return something or else the import would fail.
The idea is to create a synthetic module that would return a handler for any imported value that if called would cause an exception.
The code writer of course would have to handle detecting that their condition is not met and only call those imports when they are valid.