Modify payload to add new has_pages key