Added size check for isNext