Maybe ``isset($config['class']) ? $config['class'] : array())`` instead?