Detecting track has finished

I was planning of doing 2 sensors at the bottom to look out for gaps and 2 sensor on top to detect that there are no obstacles at the front. What you are suggesting is to do 2 more sensors at the side of the robot to detect the 3 no walls?