STYROFOAM™ Brand Insulation functions as a weather barrier. Because the foam insulation is so dense, it helps prevent water from seeping in around the nails. This keeps water away from the walls and also provides an insulating layer that helps reduce energy loss.