test length because mySQL returns empty strings