Make sure rows being returned are valid