$tax_query = array();
if( isset( $_GET['location']) && $_GET['location'] !=-1 ){
$tax_query[] =
array(
'taxonomy' => 'opalestate_location',
'field' => 'slug',
'terms' => $_GET['location'],
);
}