Is it better to repair or replace an old unit?

It depends on the age and condition of the system; a qualified technician can assess this during inspection.