Can you break this line up? It's very long and hard to follow, particularly with the conditional hanging out at the end of the function call.

The conditional should probably be assigned to some variable that makes it clear what the conditional is telling us.