You are right. It returns a promise so would work. I ll make the changes.
Promise is trimmed down dfd which can only be listened to and can not be rejected or resolved.