fix typo in return value check of confirm()