Detect if there are header elements