Array utilities moved into a separate class