Moving code that checks for valid link in another variant from Parser.php to Language.php