Swift: unwrap categories? when testing for nil