Because

> $id instanceof ItemId

Which is wrong here. Good catch