Fix incorrect usage of array_splice()