your groups contain an empty value:
case "Staff":
$group = array("5","");
break;
case "STAFF ONLY GROUP":
$group = array("5","");
break;
edit each of the groups and try to select under the 5 to select the empty value, use the trash can icon to delete the empty values from the groups.