Removes unnecessary check for n == 0

The while loop underneath would bail out immediately anyway.