why this not allowed? ``` var links: PaginationLin...
# getting-started
a
why this not allowed?
Copy code
var links: PaginationLinks? = null

 override fun hasPages(): Boolean {
        if (links != null) {
            return links.next() != null
        } else {
            return true
        }
    }
but works fine this way
Copy code
return links!!.next() != null