I'd place this conditional block first, since one presumably expects to find the key immediately.