use access for fileExits instead of try to open a file