title: Protect against nil in for loop
body: <p>I've been getting this error...</p>
  
  <p><code>
          [2017-02-27 15:11:23] NONE us us_crdrscrdrsge NONE
          [2017-02-27 15:11:23] brea crdrs crdrs_ar united states
          [2017-02-27 15:11:23] brea crdrs crdrs_daz1 united states
          [2017-02-27 15:11:23] brea crdrs crdrs_dev united states
          [2017-02-27 15:11:23] brea crdrs crdrs_devgen united states
          [2017-02-27 15:11:24] NONE us us_ctabscaninv NONE
          [2017-02-27 15:11:24] NONE us us_ctabscanstmt NONE
          fatal error: unexpectedly found nil while unwrapping an Optional value
          2017-02-27 15:11:24.111276 Mobile[647:47234] fatal error: 
          unexpectedly found nil while unwrapping an Optional value
  </code></p>
  
  <p>How can I protect against nil values in this for loop:</p>
  
  <p>```</p>
  
  <pre><code>  let apResults = realm.objects(DestinationNoEnum.self).
             filter("destinationRegionCode = 'ap'")
  
  
    for aps in apResults {
          autoreleasepool {
          print("\(aps.destinationCity) \(aps.destinationCode) 
           \(aps.destinationName) \(aps.destinationCountry)")
          }}
  </code></pre>
  
  <p>the apResults array is created via a realm query. There's like 1000 entries in the db.</p>