Checking for nullptr

Al igual que con los punteros normales, puede verificar si un RefPtr apunta a algo.

auto refModel = m_TreeView.get_model();
if (refModel)
{
  auto cols_count = refModel->get_n_columns();
  ...
}

But unlike normal pointers, RefPtrs are automatically initialized to nullptr so you don't need to remember to do that yourself.