Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

stockinternal exists

$meta_query = array(
	array(
		'key'     => '_stockinternal',
		'compare' => 'EXISTS',
	),
);