checked for existence of json file before loading it