don't catch exception when checking whether object is in container