JavaScript
Check for existence

by Benny Neugebauer

const timeoutID = (this.bundles[cacheKey]) ? this.bundles[cacheKey].timeoutID : undefined;

const timeoutID = this.bundles[cacheKey] && this.bundles[cacheKey].timeoutID;