Add class method to check for valid reference names.