I'd rather not use ArrayHelper here because this lies on the critical path of every request. We should try to optimize as much as possible. Using ArrayHelper means extra time in loading a PHP file along this critical path.