I would side to keep it, it's not efficient but it matches the standard. 
It's more a helper function than anything.
@Robz To be fair though, rasdemo is going to be rewritten...