Check before unlinking