The object has a simple struct:

```
struct Movie {

   var movieName : String
   var movieType: Array<String>
}

var parentMovieArray = [Movie]()
lazy var displayMovieArray = [Movie]()

func getMovies() {
     // get movies from API and populate parentMovieArray
}

 func filterMovies() {
    // segmented control setup where the index filters for movie type
}

```

How do I check if a string is contained in a Movie object in the parentMovieType array so that I can append that Movie object to displayMovieArray?

I am trying something like this but am struggling with the Apple documentation:

```
if parentMovieArray.contains(where: {$0.movieType.contains(self.day!)}) {
            displayArray.append($0)
        }

```