better use empty() with isset() the teamId could still be 0, '0', false ..