You could make this check a little more generic so you can use it in both cc methods.