func add(optional: Int?, block: () -> Int) -> Int? { guard let value = optional else { return nil } return value + block() }