Fix isFile function does not exists