Updated canDelete check.