This helper returns true if the Result contains a value, or false if it doesn't. Additionally, if it has a value, it sets the passed reference to it.