We know that we can use an if let statement as a shorthand to check for an optional nil then unwrap.
if let
However, I want to combine that with another expression
Swift 4, I will use,
let i = navigationController?.viewControllers.index(of: self) if let index = i, index > 0, let parent = navigationController?.viewControllers[index-1] { // access parent }