$_GET['app'] may be undefined. I guess it's time to add some abstraction for handling super globals.