can't check lenght of a nil