perhaps pass "False" as the second argument to get() instead of having these two lines.