I’m not sure what you exactly need, but normally, by default, get_terms
returns only terms that actually have posts assigned to them
$terms = get_terms( 'exhibition' );
var_dump( $terms );
Apart from this, I really do not know what you exactly need