if (!variable) ui.notify('functionality not available due to...');
When doing this simple check in IE we get SCRIPT5009: ‘variable’ is undefined, where it is exactly what we are trying to check but not fail so disgracefully. How to make this graceful fail come true?
Next code can help you: