`_popup` has an underscore in front of it to indicate that it's a private / member instance, and should not be accessed directly. The correct API is [Layer.setPopupContent()](https://leafletjs.com/reference.html#layer-setpopupcontent).
e.g.
```
marker.setPopupContent(newContent);
```