public static boolean containsElement(Object[] array, Object element) {
      if (array == null) {
         return false;
      }
      for (Object arrayEle : array) {
         if (nullSafeEquals(arrayEle, element)) {
            return true;
         }
      }
      return false;
   }