public static boolean isZero(final BigDecimal amount){
  return amount.compareTo(BigDecimal.ZERO) == 0 ? true : false;
}

public static boolean isZero ( final BigDecimal amount ) { return amount . compareTo ( BigDecimal . ZERO ) == 0 ? true : false ; }
returns true if the amount is equal to 0 else false if amount is null or if its not 0
