better key-presence checking for new getSizeObj logic