/**
  * Traverses an element to find the closest button.
  *
  * @param \Drupal\materialize\Utility\Element $element
  *   The element to iterate over.
  *
  * @return \Drupal\materialize\Utility\Element|FALSE
  *   The first button element or FALSE if no button could be found.
  */
 protected static function &findButton(Element $element)
 {
     $button = FALSE;
     foreach ($element->children() as $child) {
         if ($child->isButton()) {
             $button = $child;
         }
         if ($result =& self::findButton($child)) {
             $button = $result;
         }
     }
     return $button;
 }