I assume your question is how to test if the request is routable? That is not so easy, and not doable at that point in the framwork flow, as the routes aren't loaded yet.
Instead, I would leave the routes.php with the default route:
'_root_' => 'media/frontend/homepage/index',
And then in your app bootstrap, at the bottom (so after loading the config):