title: Swift3 assigning values to nullable object
body: <pre><code>if project == nil {
      project = Project()
  }
  
  project!.title = titleInput.text
  project!.description = descInput.text
  project!.field1 = field1.text
  project!.field2 = field2.text
  project!.field3 = field3.text
  project!.field4 = field4.text
  project!.field5 = field5.text
  </code></pre>
  
  <p>In the above code, before assigning values to object, it generates project instance if the project is nil. So we can sure the project never gonna be nil, but the below of that, it still uses <strong>!</strong> (project!.xx) so it looks ugly.</p>
  
  <p>How can I make it cleaner?</p>
  
  <p>[Edit]
  The project is class variable, and the project could be nil or could be not.
  So, I need to check before creating the instance.</p>