question: public static boolean isPresent ( Rule rule ) { if ( rule == null ) { return false ; } return ( ! isNotSet ( rule . getMinScaleDenominator ( ) ) || ! isNotSet ( rule . getMaxScaleDenominator ( ) ) ) ; }
target:  Checks if rule has minimum or maximum scale denominator set. Returns false if rule is null.