checkout - if/else was backwards.