definedNotNull()
Returns true if the object is defined and not null, returns false otherwise.
Example:
if (Cesium.definedNotNull(positions)) {
doSomething();
} else {
doSomethingElse();
}
Source:
Core/definedNotNull.js, line 17