Check for empty friends list instead of null check