Fixed condition.

'defined' returns a boolean whether the EXPR is defined or not. This will produce some unwanted behavior when working with the 'ne' operator.