title: PHP MongoDB $exist not working
body: <pre><code>$collection-&gt;update(array("_id"=&gt;new MongoId($uid), "phonenumber"=&gt; $exist =&gt; array(FALSE),$set("phone"=&gt;"1223444"));
  </code></pre>
  
  <p>I would like to know why my $exist query is not working with PHP, and Mongodb if anyone could point me in the right direction that would be helpful.</p>
  
  <p>Ok in the collection database there is no row called phonenumber and if there is no phonenumber i want it to insert one, but if there is phonenumber dont do anything.</p>