This is a... weird structure... Would expect something more like:
`$defaults[$key] = in_array($key, $selected);`