Remove some redundant checks

I would love to have another pair of eyes here, especially for Socket.IO.
@3rd-Eden I've just added it here, can revert to the original version if you think that it's better.
What i find strange is that a part of the assignment (`socket.connected`) works on the namespace and the rest on the socket directly (`socket.socket.connecting = socket.socket.reconnecting`).