?: looks not good in this case. Use if statement instead.