This isn't dead code, this is in fact the new API.  The "else" branch is actually the old code/API which we'll deprecate at some point.