Adding code to ensure that mobileformat cookie is boolean