 <p>When dealing with optionals you should be conditionally unwrapping them with an if statement.</p> <pre><code>var yourOptional: String? if let unwrapped = yourOptional { // Do something with the variable } else { // It was nil } </code></pre>