i'm getting the json from api request and getting all the values in it with id "images" and storing them in an array.
These images are of an ID and these ID's can have mutliple images, single image or no image.

I need to get the first image of all the ID's and show in a table view containing an image view and name.

The size of imagesArray depends on the number of ID's. so i'm loading the table view dynamically after getting the count of ID's. 
Then getting names into nameArray and loading it too but when i'm getting images into imagesArray, the imagesArray is a nested array.

i should get the first image of each ID's in imagesArray.

imagesArray is as follows

```
(
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1564662590/sfp9qw3rw8zmclhqiuci.jpg"
),
    (
    "dmnrvmvaa/image/upload/v1564663071/lop5xsjlb0tvubif6bgu.jpg"
),
    (
    "dmnrvmvaa/image/upload/v1564233754/nwainie3gw3vr5fpvgu2.jpg",
    "dmnrvmvaa/image/upload/v1564059202/re5aobbpzxmwoxpejjmc.jpg"
),
    (
    "dmnrvmvaa/image/upload/v1563893235/fdreobisu5jbymsehpdl.jpg",
    "dmnrvmvaa/image/upload/v1563893235/yxewb2taeyu663tb2mdd.jpg",
    "dmnrvmvaa/image/upload/v1563893237/hmho0qzcrvaqnvv4ms8u.jpg"
),
"<null>",
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1564731394/eezvfo32ka8ycowqwbdm.jpg"
),
    (
    "dmnrvmvaa/image/upload/v1564728682/odvnyid8jjvej8nixxgh.jpg",
    "dmnrvmvaa/image/upload/v1564728671/uejymrxidxxucgnkf0rs.jpg"
),
    (
    "dmnrvmvaa/image/upload/v1564663236/vvwz58nkqor26utlksbu.jpg",
    "dmnrvmvaa/image/upload/v1564663246/kfjav6izqpneo7zqzkrf.jpg"
),
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1564662222/gvw33j5fq9ly1fevmjez.jpg"
),
"<null>",
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1564663589/fxiqilfhthbdeqcppc4i.jpg"
),
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1563952137/zoqkfhqkwscholrixqkh.jpg",
    "dmnrvmvaa/image/upload/v1563958957/cw7odleffnsb4vh1ztgf.jpg",
    "dmnrvmvaa/image/upload/v1563958974/hwkg806ty1egdcqvftyp.jpg"
),
"<null>",
"<null>",
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1564058578/xpc09cz1msadanjmdl2d.jpg"
),
"<null>",
"<null>",
"<null>",
    (
    "dmnrvmvaa/image/upload/v1563959155/s5t0gilg93stk1c7ocac.jpg"
),
    (
    "dmnrvmvaa/image/upload/v1564663516/djudadgmvgn5piboo44m.jpg"
)

```

when i tried getting the images 

["dmnrvmvaa/image/upload/v1564662590/sfp9qw3rw8zmclhqiuci.jpg", "dmnrvmvaa/image/upload/v1564663071/lop5xsjlb0tvubif6bgu.jpg", "dmnrvmvaa/image/upload/v1564233754/nwainie3gw3vr5fpvgu2.jpg", "dmnrvmvaa/image/upload/v1563893235/fdreobisu5jbymsehpdl.jpg", "dmnrvmvaa/image/upload/v1564731394/eezvfo32ka8ycowqwbdm.jpg", "dmnrvmvaa/image/upload/v1564728682/odvnyid8jjvej8nixxgh.jpg", "dmnrvmvaa/image/upload/v1564663236/vvwz58nkqor26utlksbu.jpg", "dmnrvmvaa/image/upload/v1564662222/gvw33j5fq9ly1fevmjez.jpg", "dmnrvmvaa/image/upload/v1564663589/fxiqilfhthbdeqcppc4i.jpg", "dmnrvmvaa/image/upload/v1563952137/zoqkfhqkwscholrixqkh.jpg", "dmnrvmvaa/image/upload/v1564058578/xpc09cz1msadanjmdl2d.jpg", "dmnrvmvaa/image/upload/v1563959155/s5t0gilg93stk1c7ocac.jpg", "dmnrvmvaa/image/upload/v1564663516/djudadgmvgn5piboo44m.jpg"]

got this. This doesn't include null arrays. I want "null" to be added in the output array of first images of all ID's