if submod is true and return value of the function module_has_submodule called with 2 arguments: result of the function:
if submod and not module_has_submodule ( import_module ( parentmod ) , submod ) :