Guard a few dict accesses