paulblessing
06/06/2016, 9:12 PM// Safe call operator combined with Elvis for fallback value if null
if (subscription?.isUnsubscribed ?: true) {
//things
}
// Create a local copy (can choose whether or not to shadow the property name)
val subscription = subscription
if (subscription == null || subscription.isUnsubscribed) {
//things
}