(r) Promoting alternatives to detention for children and taking steps to minimize the risk of violence against children in detention, as well as encourage and facilitate frequent family visits and regular contact and communication between children and their family members unless it is in the child’s best interest not to do so, as well as with the outside world, and to ensure that no child should be subject to torture or other cruel, inhuman or degrading treatment or punishment or that disciplinary sanctions for detained children do not include a prohibition of contact with family members;