Check file existence before reading