Shopify/Timber — pull request #35 by cshold (2014-04-08 01:24:28+00:00)
Title: If the toggle button doesn't exist, don't get it's offset

If the element is defined but has no offset, there is nothing to measure and breaks the JS. This checks to make sure an offset exists.