No need to check both types