How about extracting this logic out so the conditional only has one expression?