If you want to check whether a field is empty when it comes from CDS, you should use the Empty function. And because empty is a function that refers to a object ,array or string, you need to convert the value to a string first. So for example:

empty(string(variables(‘Test value’)))  is equal to  true