Why is this inside the if block?

(Also, wait, am I reading this right -- does the old code create a new QSD object whenever _any_ user views a nonexistent page?)