Add `past.parent.after` only if it's not undefined