check for empty elements and warn