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.
Merge pull request #3 from vedosis/master

Empty group blowout fix.