Changed the implementation so that proxy is instanceof Collection