make isPromise to just check existence of .then() function