You can also represent this as "@card = cards || []", whereas you currently have 3 assignment statements here.