hide next if nowhere to go