Session: added checking groups list for emptiness at iterator operation.