           plan =
             code       : page.plan.plan_code[0]
             title      : page.plan.name[0]
-            desc       : if page.plan.description[0].$ then "" else page.plan.description[0]
+            desc       : if typeof page.plan.description[0] is "string" then page.plan.description[0] else ""
             feeMonthly : parseInt page.plan.unit_amount_in_cents[0]['USD'][0]['_']
             feeInitial : parseInt page.plan.setup_fee_in_cents[0]['USD'][0]['_']
           callback no, plan

      plan =
        code       : res.plan.plan_code[0]
        title      : res.plan.name[0]
        desc       : if res.plan.description[0].$ then "" else res.plan.description[0]
        feeMonthly : parseInt res.plan.unit_amount_in_cents[0]['USD'][0]['_']
        feeInitial : parseInt res.plan.setup_fee_in_cents[0]['USD'][0]['_']
      callback no, plan

            plans.push
              title      : p.name[0]
              code       : p.plan_code[0]
              desc       : if typeof p.description[0] is "string" then p.description[0] else ""
              feeMonthly : parseInt p.unit_amount_in_cents[0]['USD'][0]['_']
              feeInitial : parseInt p.setup_fee_in_cents[0]['USD'][0]['_']
      callback no, plans
