Add comment explaining why 'instanceof' is checked