Check if var is set.