Check if var is defined