modified code to check url using restler utils