Handle arrayref differently