This check is unnecessary, but I copied what's done for `references`