added test for empty as array condition