Only use array_merge if both are arrays