Moving the `!empty($config['log'])` check also inside the `_skipLogging()` function sounds good to me.