class ExpressionUtils {

    public static boolean isBoolean( String expression, Map<String, Object> vars )
    {
        try
        {
            Object result = evaluate( expression, vars );

            return ( result instanceof Boolean );
        }
        catch ( JexlException | NumberFormatException ex )
        {
            return false;
        }
    }

}