My mistake I though (options.url) returned a boolean but (!!options.url) could do the trick.