Validates if a value is undefined.