style nit: I love ternaries for stuff like this