Try using field['_name']
instead of $field['name']
You can see all the values for a field in your filter by adding the following to the start of your filter in order to see what values you may want to use.
echo '<pre>'; print_r($field); echo '</pre>';