I have this method. Is there a way to write it better? What I want to check if he trigger of analyticsTracker is available.
isTriggerAvailable: function() {
return (
typeof VC !== 'undefined' &&
typeof VC.components !== 'undefined' &&
typeof VC.components.analyticsTracker !== 'undefined' &&
typeof VC.components.analyticsTracker.trigger !== 'undefined'
);
},