fix isUri to return boolean