Added a check to only bind onReject and onFulfill when they are functions