You could replace this with `url || generateDefaultThumbnailURL(fileinfo.metadata)`