Don't raise on an empty trigger variable
Don't run sql contract checks if there is no sql