Add method to check url type