check if the file exists for isReadable and isUpdatable