I mostly meant I'd prefer not to see an inline ternary statement here, but the loop as a whole could be cleaned up.