When something is defined, do something with it to return a SQL string.
The thing to check
thing
What to do if the thing is defined
doWork
When something is defined, do something with it to return a SQL string.