we could also array_search here. its a bit of an edge case, but costs little and avoids a surprise.