code: public static boolean hasProperty(ClassNode classNode, String propertyName) {
          if(classNode == null || propertyName == null || "".equals(propertyName.trim()))
              return false;
  
          List properties = classNode.getProperties();
          for (Iterator i = properties.iterator(); i.hasNext();) {
              PropertyNode pn = (PropertyNode) i.next();
              if(pn.getName().equals(propertyName))
                  return true;
          }
          return false;
      }
docs: Returns whether a classNode has the specified property or not
  
  @param classNode The ClassNode
  @param propertyName The name of the property
  @return True if the property exists in the ClassNode