Add a check if the next cell exists