Object enhancement tool for php arrays