check if module is defined