Should this conditional be checking for definedness or length instead of truthfulness?