Doing so returns `undefined` when sampling an empty array. Is that what you intended?