private function isWhiteListedAuthRoute($routes)
    {
        foreach ($this->whitelistedAuthRoutes as $whitelistedRoute) {
            if (is_a($routes, $whitelistedRoute)) {
                return true;
            }
        }

        return false;
    }
private function isWhiteListedAuthRoute($routes)
    {
        foreach ($this->whitelistedAuthRoutes as $whitelistedRoute) {
            if (is_a($routes, $whitelistedRoute)) {
                return true;
            }
        }

        return false;
    }
private function isWhiteListedAuthRoute ( $ routes ) { foreach ( $ this -> whitelistedAuthRoutes as $ whitelistedRoute ) { if ( is_a ( $ routes , $ whitelistedRoute ) ) { return true ; } } return false ; }
Validates if the route object is an instance of the whitelisted routes.
A small workaround since we cant use multiple classes in a `instanceof` comparison.

@param object $routes

@return bool
Validates if the route object is an instance of the whitelisted routes . A small workaround since we cant use multiple classes in a instanceof comparison .