Added conditional around gc_collect_cycles call to make PHP < 5.3 compatible.