check out coffeescript.org for existential operator instead of:
if not x?
  x = {}