public boolean hasMasks() {
    return compositionLayer != null && compositionLayer.hasMasks();
  }
Returns whether or not any layers in this composition has masks.
lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java