Note that what you have is fine too, and probably the same, so don't bother to change it now. But it would have been surprising if they didn't have a simple helper for this, as it's a super basic scenario.