Check if var defined.