Checking if file exists in repository