check for empty lines