Move _is_package_local method into is_local helper function
Check URLs and emails