Made checks for dodgy session token more robust with specific break and return