Added validation if structure is empty