added hasFriend() to User