added #isValid() to WebSocketFrame