Minor fix, check if isFunction