Current Codes:
Some basic regex would do the trick nicely for $some_variable !== 'uk' && $some_variable !== 'in':
$some_variable !== 'uk' && $some_variable !== 'in':
if(!preg_match('/^uk|in$/', $some_variable)) { // Do something }