added array_value to reindex array after removing an item and removed using unset and unshift