Force array type into array_add function