removed ternary operator in friendships#all