checks for url