Use the promiscuous function as a sentinel.
Ensure that the promise is an object or function.