Guard for empty shell sessions