Adds a variable check by inserting
!empty
before the variable's usage.