I feel like a ternary operator here could express this reasoning in code without needing the comment.