This PR adds whenHas() to JsonResource, and I like it because it solves a very specific API problem cleanly. If an attribute exists on the model, I can keep the key in the response even when the value is null, which makes resource output more predictable.