I would like to check if the element exists and one of the methods is not blank?

Please have a look at the following code:

```

var description;           
var desc = forecasts[i].getElementsByTagName('desc')[0]
if (desc != null || desc.textContent == "") {
    description = desc.textContent
}

```

So basically if the element is not defined it gives me an error:

`Uncaught TypeError: Cannot read property 'textContent' of undefined`

Well, I can use nested `ifs`, but I think there should be a niftier solution for this issue.