Better all array elements implementation.