Use JS utils to check if a js object has a property.
this will effectively result into name in o in js.
name in o
bool hasProperty(final Object o, final Object name);