Controlla cosa contiene $_SERVER['REQUEST_URI'], l'URL contenuta potrebbe non essere come le stringhe che hai nell'array.