fixed group mapping

The last element of $group was returning a bool(false) element and throwing an exception of a missing $out[1][0] key.