better empty line check