group id check for null