Added some handling for empty friends list