properly return a truthy value when checking urls