Only call getURL() if the method is defined