Check exists before read file
Merge pull request #2619 from bootstraponline/read_file_fix

Check exists before read file