Using better version of Ext.isDefined