set array to nothing if the source isn't an array