ENYO-3525: test the existance of the 'target' argument.

Update the comment of the function.