This little guide shows some of my rules of thumb for approaching optionals, force unwrapping, guard and if statements.
When/why So we know that optionals are great, for where it’s not guaranteed that we will have a value. They’re also great for indicating when something has never been set or loaded, e.g:
var user: User? However, sometimes we end up in situations where we need a variable to be there, in order to do some work.