         @setState log: @state.log.concat [new Error 'Failed to save workflow!']
 
   _saveSubjects: (project) ->
-    subjectsToSave = (subject for subject in @_getSubjects() when null not in subject.files?)
+    subjectsToSave = (subject for subject in @_getSubjects() when null not in subject.files)
 
     sharedSubjectLinks =
       project: project.id

      xhr.send file

  _linkSubjectSet: (subjectSet, subjects) ->
    debugger
    @setState log: @state.log.concat ["Linking #{subjects.length} subjects to subject set"]
    subjectSet.update links: Object.create subjectSet.links # HACK
    subjectSet.links.subjects ?= []

DEFAULT_TASKS =
  is_cool:
    type: 'single'
    question: 'Is this thing cool?'
    answers: [
      {value: true, label: 'Yeah!'}
      {value: false, label: 'Nope!'}
    ]
    next: null

DEFAULT_DATA =
  language: languages[0]
  name: ''
  introduction: ''
  description: ''
  scienceCase: ''
  subjects: {}
  manifests: {}
  tasks: '{}'

wizardData = new Model
  refresh: ->
