Check that module is an object instead of exports