title: Compare instances of Option[T] avoiding None == None
body: <p>Yesterday I was suddenly enlighted and understood how and why people use 'map' method with Option to compare values. Yes, I'm a bit slow, sorry :)</p>
  
  <p>I revised these very nice links and came to the question I would like to ask.</p>
  
  <p><a href="http://twitter.github.com/effectivescala" rel="noreferrer">http://twitter.github.com/effectivescala</a></p>
  
  <p><a href="http://blog.tmorris.net/posts/scalaoption-cheat-sheet" rel="noreferrer">http://blog.tmorris.net/posts/scalaoption-cheat-sheet</a></p>
  
  <p>In my Lift webapp I have some Option[User] and Option[Server] variables. I'm trying to find out if this User is admin of this Server by the following check</p>
  
  <pre><code>if(user.map(_.id) == server.map(_.adminId))
  </code></pre>
  
  <p>But I noticed that in case of 'user' is None and 'server' is also None this check succeeds which is not good for me (if any of them is None I'd like this check to fail). I could add user.isDefined condition but I feel there is more correct way to do it. Could you tell how to accomplish it in Scala way?</p>