The array is now associative, so ```$parts[0]``` doesn't work. ```array(reset($parts))``` was used instead.