I want to check if data that comes from the server is null or not. If is not null then populate the recycler view item in my case being a CardView and if it is null don't display the CardView at all.

In my recycler view adapter i have this: 

```
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
    var firstName = itemsList[position].firstName
    var lastName = itemsList[position].lastName

    if (firstName.isNullOrEmpty() && lastName.isNullOrEmpty()) {
        //...what shoud i write here ?
    } else {
        holder.name?.text = firstName + " " + lastName
     }
}

class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {

    val name = itemView.name
}

```