Yes, I had it here as part of this simple suite of helper functions that might hopefully get exposed as part of API at some point. Don't mind deleting it if you prefer.