Validating mutually exclusive elements in a dictionary
<p>I have a dict that can have three keys <code>url</code>. <code>link</code> and <code>path</code>. These three need to be mutually exclusive when I'm validating the dict i.e. If the key <code>url</code> exists in the dict then <code>path</code> and <code>link</code> can't exist and so on...</p>

<p>To add to the complication: The main key cant be empty (null or '')</p>

<p>I've often come across scenarios like this and wrote a bunch of conditional statements to test this. Is there a better way?</p>

<p>Thanks.</p>
