Can directly use `(array)$actions` here and avoid assignment statement above it.