Useful PHP class for Array