Check if module is undefined