How can I make a module option dependant on another option?

Is there no way that what I’m trying to do here can be done?