Added allowed empty elements function