I wanna check the user upload image to shared gallery by code

I want to check the user upload image to shared gallery by code
I’m working on Wix Editor
and I try to make a task checker system and I want to check that my user have upload image True/false (just trigger when they have image in there gallery

Thank you very much