I actually write this to do a check. But, sometimes it doesn't work as marionette script might finish before the onsuccess reported..