Added a function to check for internal links.