I guess page.imgUrl check should be sufficient here right ?
page.imgUrl ? undefined : page.text