changed isEmpty predicates to isBlank