Having trouble checking for null condition in coffee script

The problem is, even when there is no “callbackFn” argument passed to the function, the “if” block is getting executed. What is the proper way to check if the argument is not null (i.e. is a function passed to the function)?