Guard statements in Swift

Guard statements in Swift are sort of like if statements, except that they guard against a condition. So if the expression evaluates to true, the code inside the guard statement isn’t executed.