Is there any idiomatic way to do this? ``` if (sav...
# getting-started
m
Is there any idiomatic way to do this?
Copy code
if (savedInstanceState != null) {
    val savedComments = savedInstanceState.getParcelableArrayList<Comment>("comments")
    if (savedComments != null) {
        gotComments(savedComments)
    } else {
        service.getComments(post.id, account?.name) // [0]
    }
} else {
    service.getComments(post.id, account?.name) // [1]
}