fix createGallery not checking list

checking nil or not cuz it is “createGallery”
“loadGallery” will check count > 0