if in_array order order week month in_array _GET type urls views urls

1
2
3
if(!in_array($order['order'], ['week', 'month']) || && !in_array($_GET['type'], [$urls['views'], $urls['popular']])){
header('Location: /'.$urls['top']);
}