you put this checkout on the outside so that if isModernIdb isn't undefined it just returns it