handle the cases with few friends (N<2)

Thanks for the library. I am trying to use it write a plugin for [Fluentd](https://github.com/fluent/fluentd) and stumbled on this issue (since I am new to Steam and has...few friends on it).