Added a check for deleted members