The other answers did answer the question, but I wanted to find out
something and try to be a little more specific.
What is the value type within the gallery_image column? Are you using that to store an actual image? a path to an image? or a Boolean indicating that an image has been set?
First, you would need to look up what the type it is returning and then look up the documentation on the method that will be used
here[
^]. For instance, if it was a string that was being passed in, you would go
here[
^]. This method will throw an error if the value returned is not equal to "True" or "False".
So, at least for one of your conditions (the true condition), you will definitely get an error because you are passing an empty string to Convert.ToBoolean.
You have to make sure that what is being passed will work before you code it.