#1 optimisation - removed method for dom elements testing