Use BooleanUtils to avoid null exception