Only put snapshot into opts if it has a value