When you use urethane foam you don't add a separate vapor barrier. To do so makes a second barrier and creates a terrarium in the wall. That's what rots studs and rafters, and it was a big problem 30 years ago. It isn't a problem these days and foam is still popular in new construction.