Are the Magnetic Field Directions of Surrounding Loops a Key Parameter for Confining a Solar Filament Eruption?