consider reordering the conditional check so the positive case is first (for code readability):

`data = old_content['data'] if 'data' in old_content else None`