Improved detection of empty format