Sorry, I wasn't quite sure how to phrase the question. So I know exactly what the problem is. I am reading from several plists. Some of the plists have no Array stored in "evolved\_species\_id", which gives the error

> 
> Index out of range
> 
> 
> 

How do I get my code to skip over the instances of "evolved\_species\_id" that have no stored array? This is the code I'm using to grab the data.

```
convenience init(fromDict dict: [String:Any]) {
    let ef = dict["evolves-from"] as? [[String:Any]]
    let ef1 = ef?[0]["evolved_species_id"]
    self.init(
        prevo: ef1 as? Int ?? 0,
    )

}

```

It never gets to the self.init line because the console error is created at `let ef1 = ef?[0]["evolved_species_id"]`