more defensive programming against duplicate friends