Ensure page config is an obejct