I'd tweak this to remove the ?: to make this more readable.