Swift: If Statement with Optional Binding (let) and Logical AND
Swift: If Statement with Optional Binding (let) and Logical AND avatar

In Swift, you can use optional binding inside an if statement:

Furthermore, you can unwrap the optional inside the same if statement and add a logical AND using the where clause: