so I’d prefer a match over `foreach`