Only buy from a reputable dealer
Find a reputable breeder. Look for referrals. The pet stores are the worst place to find a good bird. And also getting them directly from the breeder you can see what kind of conditions that the breeding pairs live in.
We have 2 cockatoos and we had an African Grey.