my quickest solution was to minus 1 to the length of the  array as 
  $len = count($data);
    for($i=1; $i<=$len-1;$i++){
      echo $data[$i];
    }
my offset was always the last value if the count was  140 then it will say offset 140 but after using the minus 1 everything was fine