Can't you just check `isDisabled !== undefined`?