Implements containsFiveOrMoreDivs with an inner function