I maintain an editor extension called Build Automator and I wanted to upgrade it so that it would disable any platforms that the user does not have installed; I did some searching through the docs but couldn't find anything. 

I was wondering if there's any way to detect if a module is installed, or if a build target exists?