Function : routeExists

This function routeExists() is used to check if a class exists within windows/Routes directory. If the class exists, a true value will be returned.

sample routeExists: Home
  <?php 

  ... 

  use Window;

  Home extends Window { 


    function __construct() {

      if( routeExists('Index') ) {

        // namespace spoova\mi\windows\Routes\Index exists ...

      }

    }


  }