I *think* you could do `val.length > 0` here, which would remove one import.