To be alone means that you avoid bad company. But to have a true friend is better than being alone.
or simply: