title: Concise Optional unwrapping
body: <p>I am in the process of learning Swift, I have been experimenting with <code>Optional</code> unwrapping and came across this situation:</p>
  
  <pre><code>let displayText: String?
  
  if let item = displayText {
      if let value = Double(item) {
          print("\(value)")
      } else {
          print("Didn't happen")
      }
  } else {
      print("Didn't happen")
  }
  </code></pre>
  
  <p>It seems something like this could be possible:</p>
  
  <pre><code>let displayText: String?
  
  if let item = Double(displayText) {
      print("\(item)")
  } else {
      print("Didn't happen")
  }
  </code></pre>
  
  <p>In my case <code>displayText</code> might be <code>nil</code>, so force unwrapping is not what I want to do. I know I could hide this in a function to make it more concise, but I am really curious if there are other options.<br>
  Is there anyway to make this more concise?</p>