Fix fatal error because of  function redeclaring...

In my opinion this method should be in a class anyways, but for a quick and dirty fix this should do it...was found/reported in the context of the Collections extra, see here: https://github.com/modxcms/Collections/issues/107#issuecomment-64411649

credits for the fix go to @TheBoxer =)