PerryBebbington: No, there isn't.
Thanks, this is what I wanted to know. I will create a function for it as you mentioned.