Check passed value is a function.

 + Remove unsued param.