title: How to check if the file exist in xamarin forms
body: <p>I want to check if the file inside my device exist. When the variable <strong>crphoto1</strong> is empty or the file does not exist the "<strong>Photo1</strong>" json should be <code>{"Photo1", ""}</code></p>
  
  <pre><code>JObject ph1json = string.IsNullOrEmpty(crphoto1)
  ? new JObject
  {
      {"ContactID", crcontactID},
      {"Photo1", ""}
  }
  : new JObject
  {
      {"ContactID", crcontactID},
      {"Photo1", File.ReadAllBytes(crphoto1)}
  };
  </code></pre>