add a security check on 'through' class upon deletion