Unrelated, but we could move this into the condition above ... the checks are done anyway !