added path_exists? method to router