modified is_url to get the only value there when mean fails