Check for module's existance before adding to import list