Use isEmpty().
diff --git a/src/main/java/org/apache/commons/beanutils2/DynaProperty.java b/src/main/java/org/apache/commons/beanutils2/DynaProperty.java
index bb490ed..6291b88 100644
--- a/src/main/java/org/apache/commons/beanutils2/DynaProperty.java
+++ b/src/main/java/org/apache/commons/beanutils2/DynaProperty.java
@@ -135,12 +135,12 @@
 
     /** The <em>(optional)</em> type of content elements for indexed {@code DynaProperty} */
     protected transient Class<?> contentType;
-    
+
     /**
      * Empty array.
      */
     static final DynaProperty[] EMPTY_DYNA_PROPERTY_ARRAY = new DynaProperty[0];
-    
+
     /**
      * Gets the <em>(optional)</em> type of the indexed content for {@code DynaProperty}'s
      * that support this feature.
diff --git a/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java b/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
index b12b9ff..4906a50 100644
--- a/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
+++ b/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
@@ -295,7 +295,7 @@
     @Override
     public boolean addAll(final Collection<?> collection) {
 
-        if (collection == null || collection.size() == 0) {
+        if (collection == null || collection.isEmpty()) {
             return false;
         }
 
@@ -324,7 +324,7 @@
     @Override
     public boolean addAll(final int index, final Collection<?> collection) {
 
-        if (collection == null || collection.size() == 0) {
+        if (collection == null || collection.isEmpty()) {
             return false;
         }
 
@@ -333,7 +333,7 @@
         // Call "transform" with first element, before
         // List is "grown" to ensure the correct DynaClass
         // is set.
-        if (size() == 0) {
+        if (isEmpty()) {
             transform(collection.iterator().next());
         }
 
@@ -408,7 +408,7 @@
     @Override
     public Object[] toArray() {
 
-        if (size() == 0 && elementType == null) {
+        if (isEmpty() && elementType == null) {
             return LazyDynaBean.EMPTY_LAZY_DYNA_BEAN_ARRAY;
         }
 
@@ -438,7 +438,7 @@
 
         final Class<?> arrayType = model.getClass().getComponentType();
         if (DynaBean.class.isAssignableFrom(arrayType)
-                || size() == 0 && elementType == null) {
+                || isEmpty() && elementType == null) {
             return super.toArray(model);
         }
 
@@ -483,7 +483,7 @@
      */
     public DynaBean[] toDynaBeanArray() {
 
-        if (size() == 0 && elementDynaBeanType == null) {
+        if (isEmpty() && elementDynaBeanType == null) {
             return LazyDynaBean.EMPTY_LAZY_DYNA_BEAN_ARRAY;
         }