That top end of engine isn't buggered. If its not got a dpf and it's had its oil changes on time it'll be fine, if not wouldn't, known as the disposible engine!
V50 are good though, it's an up market feeling focus wagon, handle OK and feel modern inside.
What to look for when looking at a 2006 Volvo V50 1.6 Diesel?