When $url is not an array it must be checked before