Use structKeyExist to reduce unnecessary exceptions.

- In some cases (e.g, ColdFire plugin for Firebug) unnecessary exceptions from these sections could've drowned out important ones.
minor updates for style and consistency