Why don't you make it smaller by using a ternary operator?