Prevent "Undefined index: xhprof" in Symfony 2.6

When using request_query_argument but not setting the get parameter in the URL there was a "Undefined index: xhprof" error