Do you think a pattern match would clarify this?