is this equivalent to following ?

```javascript
if (data.message !== undefined) {
  if (old_data.message !== data.message) {
	  ...
  } else if (old_data.message === undefined) {
	  ...
  }
}
```