I am interacting with a MongoDB backend with gatsby. There is a node which sometimes has images and sometimes doesn\'t so each of these nodes has a child node within it call