Use of Optional chaining as an alternative to unwrap