I'm trying to append some values to an array. The problem is that some values are nils, and when I try to fetch the array it returns an error:

This is my main code:

```
class ViewVerPedidos: UIViewController{

    @IBOutlet weak var tableOrders: UITableView!

    var originOrders = [String]()

    override func viewDidLoad() {
        super.viewDidLoad()

        tableOrders.dataSource = self
        tableOrders.delegate = self

        obtOrders()
  }

func obtOrders(){

        NetworkingProvider.shared.getAllOrders{ (pedidos) in

            for pedido in pedidos{
                self.originOrders.append(pedido.origen!) // <-This could be nil or not
            }

            DispatchQueue.main.async{ [weak self] in
                self?.tableOrders.reloadData()
            }

        } failure: { (error) in
            print(error.debugDescription)
            return
        }
    }

extension ViewVerPedidos: UITableViewDataSource{

    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return lblOriginOrders.count
    }

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

        let cell = tableOrders.dequeueReusableCell(withIdentifier: "tableviewCellOrders", for: indexPath) as? TableViewCellOrders
        cell!.lblOriginOrders.text = originOrders[indexPath.row] // Here mark error nil found!
        return cell!
    }
}

}

```

The error is because found a nil:

> 
> Fatal error: Unexpectedly found nil while implicitly unwrapping an
> Optional value
> 
> 
> 

I have tried, those:

```
self.originOrders.append(pedido.origen ?? "nothing found")

```

for add some default value if found a nil, but this don't work

Some ideas about how to add some default value to an array when found a nil?

Thanks!