Fixed broken API
If $url exists fix