add check to make sure existing .json files aren't empty