Check if file is empty before updating shift registers