I think you can just do prev_ref = body.get('previous')