Check that file exists before comparing size