I don't think this is necessary.  Someone should know better than to use results from a function that returned error.