removed isFunction test for callback.