A simple utility class for collections in PHP