I can check if the value is within the 'Users' but I can't check if the value is within 'Pages' How it will work both Users and Pages?
$mypages = array(
'Pages' => array('pages' => array('add_page', 'edit_page')),
'Users' =>array('view_all_users', 'add_user'));
foreach($mypages as $keys => $key):
$display = in_array($_GET['page'], $key) ? "block" : "none";
echo '<ul style="display:'.$display.';"></ul>';
endforeach;