if you want it to exactly match the string try using the exact typof three equal signs like so
if( $o['group'] === 0){
the ==
will always evaluate to true when comparing a string to a integer of 0
'a string' == 0 also evaluates to true because any string is converted into an integer when compared with an integer. If PHP can't properly convert the string then it is evaluated as 0. So 0 is equal to 0, which equates as true.
From here