Courts have to safeguard the family system in the country which is fast eroding, the Madras High Court recently said while dealing with an case relating to granting visitation rights to the grandparents of a minor girl [A Aashifa Begum vs Khader Beevi].