routeExists() is used to check if a class exists
within windows/Routes directory. If the class exists, a true value will be returned.
<?php
...
use Window;
Home extends Window {
function __construct() {
if( routeExists('Index') ) {
// namespace spoova\mi\windows\Routes\Index exists ...
}
}
}