Checking whether a variable is set