Add void element detection