Add getURL() utility method to reduce try/catch blocks