This is the pattern used in data() as well. I suspect data() uses this pattern so you can set null. In that light this seems reasonable.