added correct check for url arg