Would you be cool adding a few failure cases as well where `checkoutReference` would return false?