If the given value is not an array then an empty array will be returned, otherwise a copy of the array is returned.