shouldn't this be 
```php
if (empty($v['value']))
    continue;
```