Using less missleading logic to detect if a handshake response was received