fix(files) add isFunction condition