LDN-1981: added missing isFunction() method.