Accounting for zero being a valid group

Signed-off-by: ziycon <ziycon.eire@gmail.com>
Merge pull request #497 from ziycon/comparison_check

Accounting for zero being a valid group