It's not worth it. Any time you have a function that returns 1 or more variables that you need + an error, you either have to declare the variables up front (so you can use them later, since they're scoped to the block), or you have to put the if on the following line. I'd rather just go with that.