At least, there is nothing silly in your suggestion, Alberto, it sounds quite interesting to me. It could spare a bunch lines in coding for a very basic and often used function.
Can you tell some examples what for you used it?
I think it makes easier to understand a suggestion, if one knows the purposes. Thank you!