Add this method to JSOHelper class, to check if key is exist in JavaScriptObject.
Code:
public static native boolean isContainsKey(JavaScriptObject elem, String attr) /*-{ return (elem[attr]!==undefined); }-*/;