classes/Route.php
public function runIfMatch($URL, $method='get'){
      return $this->match($URL,$method) ? $this->run($this->extractArgs($URL),$method) : null;
    }
public function runIfMatch($URL, $method='get'){
      return $this->match($URL,$method) ? $this->run($this->extractArgs($URL),$method) : null;
    }
public function runIfMatch ( $ URL , $ method = 'get' ) { return $ this -> match ( $ URL , $ method ) ? $ this -> run ( $ this -> extractArgs ( $ URL ) , $ method ) : null ; }
Check if route match URL and HTTP Method and run if it is valid.
@param  [type] $URL The URL to check against.
@param  string $method The HTTP Method to check against.
@return array The callback response.
Check if route match URL and HTTP Method and run if it is valid .