Cleaned a piece of code at notifyFriends() to avoid redundancy.