use instanceof to determine whether an object is a Q promise.