1
2
3
if(child in family){
    delete family[child];
}