How to check if an Element can be looped?