It took me a while to figure out what you were doing, but after a while I finally discovered. It looks nice, but... isn't it easier to create a hash with the possible $_actions?
Update: Hmm... it's an almost 3 years old thread. Should have checked that before posting.