Check for length of 0

Signed-off-by: Joseph A. Lutz <joseph.lutz@novatechweb.com>