DzColorDialog - How to notice that the user pressed 'cancel'

If I press "Cancel" in the DzColor dialog, the color "Black" is returned (even if I have set an initial color in the call to getColor()). So in the calling script I cannot distinguish whether the user has selected "Black" or pressed "Cancel". How can I recognize this?
Comments
I am told:
Thanks, it works :-).