check for empty headers before body