for functions that only return a value sometimes, theres http://www.boost.org/doc/libs/1_53_0/libs/optional/doc/html/index.html.
ie the new function is 
```
boost::option<int> ChatInstance::findUser(QString userID) {

}
```